boolean (PsiClass aClass) { if (PsiUtil.isLocalClass(aClass)) return false; for (String ancestorClass : ancestorClasses) { if (InheritanceUtil.isInheritor(aClass, ancestorClass)) { return true; } } return false; }