void (boolean state) { if (myToolWindowPanel == null) return; DiffPreview preview = ObjectUtils.chooseNotNull(myToolWindowPanel.mySplitterDiffPreview, myToolWindowPanel.myEditorDiffPreview); DiffPreview.setPreviewVisible(preview, state); myToolWindowPanel.setCommitSplitOrientation(); }