public static @NotNull FormatOnSaveOptions getInstance(@NotNull Project project) {
    return project.getService(FormatOnSaveOptions.class);
  }
public static @NotNull FormatOnSaveOptions getInstance(@NotNull Project project)