void (boolean selected) { if (project.isDisposed()) return; boolean updated = selected != isSelected(); currentState.setHideEmptyMiddlePackages(selected); getDefaultState().setHideEmptyMiddlePackages(selected); getGlobalOptions().setHideEmptyPackages(selected); if (updated) updatePanes(false); }