boolean (PsiClass klass) { final PsiClass psiClass = JavaPsiFacade.getInstance(klass.getProject()).findClass(myClassName, klass.getResolveScope()); return psiClass != null && klass.isInheritor(psiClass, true); }