void (@NotNull final List<WCInfo> infoList, @NotNull final List<WorkingCopyFormat> supportedFormats) { myPanel.removeAll(); for (final WCInfo wcInfo : infoList) { final Collection<WorkingCopyFormat> upgradeFormats = getUpgradeFormats(wcInfo, supportedFormats); WorkingCopyInfoPanel infoPanel = new WorkingCopyInfoPanel(); infoPanel.setInfo(wcInfo); infoPanel.setUpgradeFormats(upgradeFormats); infoPanel.setFocusable(true); infoPanel.setBorder(null); infoPanel.update(); infoPanel.addHyperlinkListener(new HyperlinkListener() { @Override public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() != HyperlinkEvent.EventType.ACTIVATED) return; performAction(wcInfo, upgradeFormats, infoPanel, e.getDescription()); } }); myPanel.add(infoPanel); } myPanel.revalidate(); myPanel.repaint(); }