PsiMethod (PsiMethod method) { final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(method.getProject()); final String qualifiedName = StringUtil.getQualifiedName(getPackageName(), getClassName()); final PsiClass existingClass = psiFacade.findClass(qualifiedName, method.getResolveScope()); setExistingClass(existingClass); return findCompatibleConstructor(existingClass); }