void (@NotNull File formatter, @NotNull File oldFormatter) { LOG.info("Update failed, rollback"); try { FileUtil.rename(oldFormatter, formatter); } catch (IOException e) { LOG.info("Can't rollback formatter after failed update", e); } FileUtil.delete(oldFormatter); }