PsiClass (final PsiClass psiClass, final String qualifiedName) { final Module module = JavaExecutionUtil.findModule(psiClass); if (module == null) { return null; } return JavaPsiFacade.getInstance(psiClass.getProject()) .findClass(qualifiedName.replace('$', '.').replace("\\*", psiClass.getName()), GlobalSearchScope.moduleScope(module)); }