mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
PsiUtil.isAnnotationMethod
This commit is contained in:
@@ -690,6 +690,12 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
return file;
|
||||
}
|
||||
|
||||
public static boolean isAnnotationMethod(PsiElement element) {
|
||||
if (!(element instanceof PsiAnnotationMethod)) return false;
|
||||
PsiClass psiClass = ((PsiAnnotationMethod)element).getContainingClass();
|
||||
return psiClass != null && psiClass.isAnnotationType();
|
||||
}
|
||||
|
||||
private static class TypeParameterIterator implements Iterator<PsiTypeParameter> {
|
||||
private int myIndex;
|
||||
private PsiTypeParameterListOwner myCurrentOwner;
|
||||
|
||||
Reference in New Issue
Block a user