diff --git a/src/main/java/com/github/_1c_syntax/bsl/languageserver/references/AnnotationReferenceFinder.java b/src/main/java/com/github/_1c_syntax/bsl/languageserver/references/AnnotationReferenceFinder.java index 28649de507..7916aa8cd2 100644 --- a/src/main/java/com/github/_1c_syntax/bsl/languageserver/references/AnnotationReferenceFinder.java +++ b/src/main/java/com/github/_1c_syntax/bsl/languageserver/references/AnnotationReferenceFinder.java @@ -113,6 +113,7 @@ private static Optional> findAnnotation(MethodSym return methodSymbol.getAnnotations().stream() .filter(annotation -> annotation.getName().equalsIgnoreCase("Аннотация")) .findFirst() + .filter(annotation -> annotation.getParameters().size() == 1) .map(annotation -> Pair.of(methodSymbol, annotation)); }