void () { CodeStyleSchemesModel.OverridingStatus status = myModel.getOverridingStatus(); if (status != null) { final CodeStyleScheme currScheme = getSelectedScheme(); final CodeStyleSettings currSettings = currScheme.getCodeStyleSettings(); final CodeStyleSettings modelSettings = myModel.getCloneSettings(currScheme); for (CodeStyleSettingsModifier modifier : status.getModifiers()) { Consumer<CodeStyleSettings> disablingFunction = modifier.getDisablingFunction(myModel.getProject()); if (disablingFunction != null) { disablingFunction.accept(currSettings); CodeStyleSettingsManager.getInstance(myModel.getProject()).notifyCodeStyleSettingsChanged(); disablingFunction.accept(modelSettings); } } myModel.updateOverridingStatus(); myModel.fireModelSettingsChanged(modelSettings); } else { myBottomPanel.setVisible(false); } }