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