List<PsiAnnotation> (@NotNull List<AnnotationData> result, @NotNull String annotationFQN) { SmartList<PsiAnnotation> annotations = new SmartList<>(); for (AnnotationData data : result) { if (data.annotationClassFqName.equals(annotationFQN)) { PsiAnnotation annotation = data.getAnnotation(this); annotations.add(annotation); } } return annotations; }