void (@NotNull Project project) { LOG.debug("closed project: %s", project); final JFrame frame = WindowManager.getInstance().getFrame(project); if (frame == null) { // can be when frame is closing (and project is disposing) LOG.debug("null frame for project: %s", project); return; } TouchBarsManager.unregister(frame); // remove project-default action group }