private static boolean isComponentUI(PsiClass aClass, HashSet<? super PsiClass> classes) {
    while (aClass != null) {
      if (!classes.add(aClass)) return false;
      if ("javax.swing.plaf.ComponentUI".equals(aClass.getQualifiedName())) {
        return true;
      }
      aClass = aClass.getSuperClass();
    }
    return false;
  }
private static boolean isComponentUI(PsiClass aClass, HashSet<? super PsiClass> classes)