show non-documented external annotations in the gutter (IDEA-168443)

except for @Flow that confuses people
This commit is contained in:
peter
2017-02-21 18:00:25 +01:00
parent a7de2efe3f
commit fc2835ef9a
@@ -143,11 +143,7 @@ public class ExternalAnnotationsLineMarkerProvider extends LineMarkerProviderDes
}
private static boolean isVisibleAnnotation(@NotNull PsiAnnotation annotation) {
PsiJavaCodeReferenceElement ref = annotation.getNameReferenceElement();
if (ref == null) return true;
PsiElement target = ref.resolve();
return !(target instanceof PsiClass) || JavaDocInfoGenerator.isDocumentedAnnotationType(target);
return !"org.intellij.lang.annotations.Flow".equals(annotation.getQualifiedName());
}
@Override