void (@NotNull Map<? super String, ? super String> info) { StringBuilder result = new StringBuilder(); for (int i = 0; i < myList.size(); i++) { NavBarItem each = myList.get(i); if (each.isSelected()) { result.append("[").append(each.getText()).append("]"); } else { result.append(each.getText()); } if (i < myList.size() - 1) { result.append(">"); } } info.put("navBar", result.toString()); if (isNodePopupActive()) { StringBuilder popupText = new StringBuilder(); JBList list = myNodePopup.getList(); for (int i = 0; i < list.getModel().getSize(); i++) { Object eachElement = list.getModel().getElementAt(i); String text = new NavBarItem(this, eachElement, myNodePopup, true).getText(); int selectedIndex = list.getSelectedIndex(); if (selectedIndex != -1 && eachElement.equals(list.getSelectedValue())) { popupText.append("[").append(text).append("]"); } else { popupText.append(text); } if (i < list.getModel().getSize() - 1) { popupText.append(">"); } } info.put("navBarPopup", popupText.toString()); } }