コード例 #1
0
 @NotNull
 public Collection<PsiAnnotation> collectProcessedAnnotations(@NotNull PsiClass psiClass) {
   List<PsiAnnotation> result = new ArrayList<PsiAnnotation>();
   for (PsiMethod psiMethod : PsiClassUtil.collectClassMethodsIntern(psiClass)) {
     PsiAnnotation psiAnnotation =
         PsiAnnotationUtil.findAnnotation(psiMethod, getSupportedAnnotation());
     if (null != psiAnnotation) {
       result.add(psiAnnotation);
     }
   }
   return result;
 }
コード例 #2
0
 @NotNull
 @Override
 public List<? super PsiElement> process(@NotNull PsiClass psiClass) {
   List<? super PsiElement> result = new ArrayList<PsiElement>();
   for (PsiMethod psiMethod : PsiClassUtil.collectClassMethodsIntern(psiClass)) {
     PsiAnnotation psiAnnotation =
         PsiAnnotationUtil.findAnnotation(psiMethod, getSupportedAnnotation());
     if (null != psiAnnotation) {
       if (validate(psiAnnotation, psiMethod, ProblemEmptyBuilder.getInstance())) {
         processIntern(psiMethod, psiAnnotation, result);
       }
     }
   }
   return result;
 }