@Nullables
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 23 Jan 2012 07:24:03 +0000 (11:24 +0400)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Mon, 23 Jan 2012 07:24:03 +0000 (11:24 +0400)
java/openapi/src/com/intellij/codeInsight/AnnotationUtil.java

index 7f5ff36dd58d914e7d765aeda31fa104a7d3042e..5907116b7ea33e2a289fa75bb9f088a91b6bf66f 100644 (file)
@@ -159,9 +159,10 @@ public class AnnotationUtil {
     return null;
   }
 
+  @Nullable
   private static PsiAnnotation doFindAnnotationInHierarchy(PsiParameter parameter,
                                                            Set<String> annotationNames,
-                                                           Set<PsiModifierListOwner> visited) {
+                                                           @Nullable Set<PsiModifierListOwner> visited) {
     PsiAnnotation annotation = findAnnotation(parameter, annotationNames);
     if (annotation != null) return annotation;
     PsiElement scope = parameter.getDeclarationScope();