void (ListSelectionEvent e) { Collection<FeatureDescriptor> selection = table.getSelection(); if (selection.isEmpty()) { textPane.clear(); } else { TipAndTrickBean tip = TipUtils.INSTANCE.getTip(selection.iterator().next()); Component contextComponent = table.isShowing() ? table : WindowManager.getInstance().getFrame(myProject); List<TextParagraph> paragraphs = TipUtils.loadAndParseTip(tip, contextComponent); textPane.setParagraphs(paragraphs); } }