PsiElement (Object pattern) { if (pattern instanceof String) { final String className = StringUtil.getPackageName((String)pattern, ','); if (!pattern.equals(className)) { final Project project = getConfiguration().getProject(); PsiManager manager = PsiManager.getInstance(project); final SourceScope sourceScope = getSourceScope(); final GlobalSearchScope globalSearchScope = sourceScope != null ? sourceScope.getGlobalSearchScope() : GlobalSearchScope.projectScope(project); return ClassUtil.findPsiClass(manager, className, null, true, globalSearchScope); } } return null; }