void (@Nullable File dir) { if (dir != null && dir.exists()) { try { final boolean delete = FileUtil.delete(dir); if (!delete) { LOG.info("Failed deleting legacy caches"); } } catch (Exception e) { LOG.info(e); } } }