public static boolean isAutoCrlfSetRight(@NotNull Project project) {
    String projectBasePath = project.getBasePath();
    if (projectBasePath == null) return true;
    GeneralCommandLine commandLine = new GeneralCommandLine()
      .withParentEnvironmentType(GeneralCommandLine.ParentEnvironmentType.CONSOLE)
      .withWorkDirectory(projectBasePath)
      .withExePath("git")
      .withParameters("config")
      .withParameters("--get")
      .withParameters("core.autocrlf");

    StringBuilder processOutput = new StringBuilder();
    try {
      OSProcessHandler handler = new OSProcessHandler(commandLine.withCharset(StandardCharsets.UTF_8));
      handler.addProcessListener(new CapturingProcessAdapter() {
        @Override
        public void processTerminated(@NotNull ProcessEvent event) {
          if (event.getExitCode() != 0) {
            LOG.warn("Couldn't fetch repository remote name: " + getOutput().getStderr());
          } else {
            processOutput.append(getOutput().getStdout());
          }
        }
      });
      handler.startNotify();
      handler.waitFor();
    }
    catch (ExecutionException e) {
      LOG.warn("Couldn't execute command for getting remote name", e);
    }
    String value = processOutput.toString().lines().findFirst().orElse("");
    LOG.info("CRLF configuration for " + project.getName() + " project: " + value);
    return value.equalsIgnoreCase("input");
  }
public static boolean isAutoCrlfSetRight(@NotNull Project project)