String (@NotNull Component component) { if (component instanceof JPanel) { ((JPanel)component).putClientProperty(DIALOG_CONTENT_PANEL_PROPERTY, true); } String id = myComponentToIdMap.get(component); if (id == null) { id = Integer.toString(myComponentToIdMap.size()); myComponentToIdMap.put(component, id); myContentPanel.add(component, id); } return id; }