boolean (@NotNull final PsiMethod psiMethod) { if (!myType.equalsToText("java.rmi.RemoteException")) return false; final PsiClass containingClass = psiMethod.getContainingClass(); if (containingClass == null) return false; final JavaPsiFacade instance = JavaPsiFacade.getInstance(containingClass.getProject()); final PsiClass remote = instance.findClass("java.rmi.Remote", GlobalSearchScope.allScope(containingClass.getProject())); return remote != null && containingClass.isInheritor(remote, true); }