Icon (@Nullable TextEditorWithPreview editor) { if (this == SHOW_EDITOR) return AllIcons.General.LayoutEditorOnly; if (this == SHOW_PREVIEW) return AllIcons.General.LayoutPreviewOnly; boolean isVerticalSplit = editor != null && editor.myIsVerticalSplit; return getEditorWithPreviewIcon(isVerticalSplit); }