private static boolean renameOldShellcheck(@NotNull File shellcheck, @NotNull File oldShellcheck, @NotNull Runnable onFailure) {
    LOG.info("Rename shellcheck to the temporary filename");
    try {
      FileUtil.rename(shellcheck, oldShellcheck);
    }
    catch (IOException e) {
      LOG.info("Can't rename shellcheck to the temporary filename", e);
      ApplicationManager.getApplication().invokeLater(onFailure);
      return false;
    }
    return true;
  }
private static boolean renameOldShellcheck(@NotNull File shellcheck, @NotNull File oldShellcheck, @NotNull Runnable onFailure)