void () { FileHistoryEditorDiffPreview preview = myEditorDiffPreview; boolean isEditorPreview = VcsLogUiUtil.isDiffPreviewInEditor(myProject); if (isEditorPreview && preview == null) { preview = new FileHistoryEditorDiffPreview(myProject, this); myEditorDiffPreview = preview; } else if (!isEditorPreview && preview != null) { preview.closePreview(); myEditorDiffPreview = null; } }