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