@Override
  public @NotNull String getLineSeparator(@Nullable VirtualFile file, @Nullable Project project) {
    String lineSeparator = file == null ? null : file.getDetectedLineSeparator();
    if (lineSeparator == null) {
      CodeStyleSettings settings =
        project != null && file != null ? CodeStyle.getSettings(project, file) : CodeStyle.getProjectOrDefaultSettings(project);
      lineSeparator = settings.getLineSeparator();
    }
    return lineSeparator;
  }
@Override
  public @NotNull String getLineSeparator(@Nullable VirtualFile file, @Nullable Project project)