JPanel (UsageInfo usageInfo, @NotNull Color backGroundColor) { final JPanel header = new JPanel(new FlowLayout(FlowLayout.LEFT)); header.setBackground(backGroundColor); final JComponent link = UsagePreviewComponent.Companion.createNavigationLink(this, myUsageView, usageInfo); if (link != null) { header.add(link); } final Color color = new JBColor(Gray.xCD, Gray.x51); header.setBorder(JBUI.Borders.customLineTop(color)); return header; }