boolean (final String className, final String fromName, final GlobalSearchScope scope) { final PsiClass aClass = JavaPsiFacade.getInstance(myProject).findClass(className, scope); final PsiClass fromClass = JavaPsiFacade.getInstance(myProject).findClass(fromName, scope); if (aClass == null || fromClass == null) { return false; } return InheritanceUtil.isInheritorOrSelf(fromClass, aClass, true); }