private static boolean isNotImplicitClass(@NotNull PsiFile file) {
    if (file instanceof PsiJavaFile javaFile) {
      PsiClass[] classes = javaFile.getClasses();
      if (ContainerUtil.or(classes, cl -> cl instanceof PsiImplicitClass)) {
        return false;
      }
    }
    return true;
  }
private static boolean isNotImplicitClass(@NotNull PsiFile file)