public static PsiClass findPsiClass(String name, PsiElement context) {
    final Project project = context.getProject();
    if (!StringUtil.getShortName(name).equals(name)) {
      final PsiClass psiClass = JavaPsiFacade.getInstance(project).findClass(name, GlobalSearchScope.allScope(project));
      if (psiClass != null) {
        return psiClass;
      }
      return findNestedPsiClass(name, context, project);
    }
    return findPsiClass(name, parseImports((XmlFile)context.getContainingFile()), context, project);
  }
public static PsiClass findPsiClass(String name, PsiElement context)