void () { boolean isToolbarHorizontal = CommitModeManager.getInstance(myProject).getCurrentCommitMode().useCommitToolWindow() && isToolbarHorizontalSetting.asBoolean(); myChangesPanel.setToolbarHorizontal(isToolbarHorizontal); if (myCommitPanel != null) myCommitPanel.setToolbarHorizontal(isToolbarHorizontal); }