void (@NotNull ContentManager manager, @NotNull JComponent contentComponent) { for (Content content : manager.getContents()) { if (Comparing.equal(content.getComponent(), contentComponent)) { TabGroupId groupId = content.getUserData(Content.TAB_GROUP_ID_KEY); TabDescriptor tab = content.getUserData(Content.TAB_DESCRIPTOR_KEY); if (groupId != null && tab != null) { content.setDisplayName(groupId.getDisplayName(tab)); return; } } } }