void (@NotNull Object element) { RecentProjectsManager manager = RecentProjectsManager.getInstance(); if (element instanceof ReopenProjectAction) { manager.removePath(((ReopenProjectAction)element).getProjectPath()); } else if (element instanceof ProjectGroupActionGroup) { manager.removeGroup(((ProjectGroupActionGroup)element).getGroup()); } }