void () { EditorTabDiffPreviewManager previewManager = EditorTabDiffPreviewManager.getInstance(myProject); DiffPreview diffPreview = getShowDiffActionPreview(); if (diffPreview != null && previewManager.isEditorDiffPreviewAvailable()) { diffPreview.performDiffAction(); } else { showStandaloneDiff(myProject, this); } }