diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java index d0fe44967646..ffd9897f2fec 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/java/stubs/index/JavaAnnotationIndex.java @@ -1,4 +1,4 @@ -// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.psi.impl.java.stubs.index; import com.intellij.openapi.project.Project; @@ -33,7 +33,11 @@ public final class JavaAnnotationIndex extends StringStubIndexExtension getAnnotations(final @NotNull String s, final @NotNull Project project, final @NotNull GlobalSearchScope scope) { - return StubIndex.getElements(getKey(), s, project, new JavaSourceFilterScope(scope), PsiAnnotation.class); + public Collection getAnnotations( + @NotNull String shortName, + @NotNull Project project, + @NotNull GlobalSearchScope scope + ) { + return StubIndex.getElements(getKey(), shortName, project, new JavaSourceFilterScope(scope), PsiAnnotation.class); } } \ No newline at end of file