boolean (String[] anno, PsiElement psiElement) { ArrayList<PsiModifierListOwner> listOwners = new ArrayList<>(); if (psiElement instanceof PsiMethod) { listOwners.add((PsiMethod)psiElement); } if (psiElement instanceof PsiClass) { listOwners.add((PsiClass)psiElement); } return ContainerUtil.exists(anno, an -> MetaAnnotationUtil.isMetaAnnotated(listOwners.get(0), Collections.singleton(an))); }