public static @Nullable Document createDocument(final String text,
                                                  Project project,
                                                  boolean isClassesAccepted) {
    return createDocument(text, project, isClassesAccepted, JavaCodeFragment.VisibilityChecker.EVERYTHING_VISIBLE);
  }
public static @Nullable Document createDocument(final String text,
                                                  Project project,
                                                  boolean isClassesAccepted)