boolean () { if (!myInfo.isPinned() && AdvancedSettings.getBoolean("editor.keep.pinned.tabs.on.left")) { @NotNull List<TabInfo> tabs = myTabs.getVisibleInfos(); boolean wasPinned = false; for (TabInfo info : tabs) { if (wasPinned && info == myInfo) return true; wasPinned = info.isPinned(); } } return false; }