void () { String oldName = project.getName(); ((ProjectEx)project).setProjectName(newName); ExternalSystemApiUtil.getSettings(project, externalSystemId).getPublisher().onProjectRenamed(oldName, newName); }