public static boolean isLocalOrAnonymousClass(@NotNull PsiClass psiClass) {
    return psiClass instanceof PsiAnonymousClass || isLocalClass(psiClass);
  }
public static boolean isLocalOrAnonymousClass(@NotNull PsiClass psiClass)