void (Content content, @NlsContexts.TabTitle String tabName) { invokeLaterIfNeeded(() -> { if (!tabName.equals(content.getDisplayName())) { // we are going to adjust display name, so we need to ensure tab name is not retrieved based on display name content.setTabName(tabName); content.setDisplayName(tabName); } }); }