コード例 #1
0
 @NotNull
 @Override
 protected List<PsiClass> getTargetClasses(PsiElement element) {
   List<PsiClass> result = new ArrayList<PsiClass>();
   PsiReferenceExpression expr = getMethodCall().getMethodExpression();
   for (PsiClass each : super.getTargetClasses(element)) {
     if (PsiUtil.isAbstractClass(each)
         && !each.isInterface()
         && !shouldCreateStaticMember(expr, each)) result.add(each);
   }
   return result;
 }