boolean (Project project, ModDeleteFile file) { try { WriteAction.run(() -> file.file().delete(this)); return true; } catch (IOException e) { executeMessage(project, new ModDisplayMessage(e.getMessage(), ModDisplayMessage.MessageKind.ERROR)); return false; } }