void () { MultipleBuildsView buildsView = myBuildsViewValue.getValue(); Content content = buildsView.getContent(); if (content != null && content.isPinned()) { String tabName = getPinnedTabName(buildsView); UIUtil.invokeLaterIfNeeded(() -> { content.setPinnable(false); if (content.getIcon() == null) { content.setIcon(EmptyIcon.ICON_8); } content.putUserData(ToolWindow.SHOW_CONTENT_ICON, Boolean.TRUE); ((BuildContentManagerImpl)myBuildContentManager).updateTabDisplayName(content, tabName); }); myPinnedViews.add(buildsView); myBuildsViewValue.drop(); content.putUserData(PINNED_EXTRACTED_CONTENT, Boolean.TRUE); } }