List<PsiAnnotation> () { List<PsiAnnotation> annotations = PsiTreeUtil.getChildrenOfTypeAsList(this, PsiAnnotation.class); if (!isQualified()) { PsiModifierList modifierList = PsiImplUtil.findNeighbourModifierList(this); if (modifierList != null) { annotations = new ArrayList<>(annotations); PsiImplUtil.collectTypeUseAnnotations(modifierList, annotations); } } return annotations; }