void () { List<MavenProject> projectToUpdate; List<MavenProject> projectToDelete; synchronized (mySheduledProjects) { projectToUpdate = selectScheduledProjects(true); projectToDelete = selectScheduledProjects(false); mySheduledProjects.clear(); } if (!myProject.isDisposed()) { MavenKeymapExtension.clearActions(myProject, projectToDelete); MavenKeymapExtension.updateActions(myProject, projectToUpdate); } }