You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lookup_windows.go
    path of file: ./repos/encore/pkg/editors
    
    the code of the file until where you have to start completion: //go:build windows

package editors

import (
	"context"
	"fmt"
	"path"
	"path/filepath"
	"slices"
	"strings"
	"time"

	"github.com/cockroachdb/errors"
	"github.com/rs/z
    
func registryKeysForJetBrainsIDE(product string) []RegistryKey {
	const maxMajorReleasesPerYear = 5
	const maxMinorReleasesPerYear = 5
	var lastYear = time.Now().Year()
	var firstYear = lastYear - 2

	var result []RegistryKey

	for year := firstYear; year <= lastYear; year++ {
		for majorRelease := 1; majorRelease <= maxMajorReleasesPerYear; majorRelease++ {
			for minorRelease := 0; minorRelease <= maxMinorReleasesPerYear; minorRelease++ {
				key := fmt.Sprintf("%s %d.%d", product, year, majorRelease)
				if minorRelease > 0 {
					key = fmt.Sprintf("%s.%d", key, minorRelease)
				}

				result = append(result,
					Wow64LocalMachineUninstallKey(key),
					CurrentUserUninstallKey(key),
				)
			}
		}
	}

	// Return in reverse order to prioritize newer versions
	slices.Reverse(result)
	return result
}