void () { final boolean allInPackageAllInProject = myModel.disableModuleClasspath(myWholeProjectScope.isSelected()); myModule.setEnabled(!allInPackageAllInProject); if (allInPackageAllInProject) { myModule.getComponent().setSelectedItem(null); } }