PsiAnnotation (@NotNull PsiModifierListOwner listOwner, @NotNull String annotationFQN) { for (InferredAnnotationProvider provider : InferredAnnotationProvider.EP_NAME.getExtensionList(myProject)) { PsiAnnotation annotation = provider.findInferredAnnotation(listOwner, annotationFQN); if (annotation != null) { markInferred(annotation); return annotation; } } return null; }