SPDX-License-Identifier: Apache-2.0
Copyright $originalComment.match("Copyright (\d+)", 1, "-", "$today.year")$today.year REPLACE_WITH_YOUR_NAME

Will look like:

// SPDX-License-Identifier: Apache-2.0
// Copyright 2014-2023 REPLACE_WITH_YOUR_NAME

To instead append the year in a comma-separated list (like 2014-2016, 2022, 2023) replace the match command with:

$originalComment.match("Copyright (\d+(, \d+|-\d+)*)", 1, ", ", "$today.year")

Get the license identifier from https://spdx.org/licenses/.

Make sure to note that the SPDX identifier is used and what it means.

Change to Use line comment in File | Settings | Editor | Copyright | Formatting.

Regexp to detect copyright: Copyright