void (@NotNull JPanel centerPanel) { createVersionComponent(true); int offset = JBUIScale.scale(10); JPanel panel1 = new NonOpaquePanel(new TextHorizontalLayout(offset)); centerPanel.add(panel1); if (myMarketplace) { myDownloads = ListPluginComponent.createRatingLabel(panel1, null, "", AllIcons.Plugins.Downloads, ListPluginComponent.GRAY_COLOR, true); myRating = ListPluginComponent.createRatingLabel(panel1, null, "", AllIcons.Plugins.Rating, ListPluginComponent.GRAY_COLOR, true); } myAuthor = new LinkPanel(panel1, false, true, null, TextHorizontalLayout.FIX_LABEL); myEnabledForProject = new JLabel(); myEnabledForProject.setHorizontalTextPosition(SwingConstants.LEFT); myEnabledForProject.setForeground(ListPluginComponent.GRAY_COLOR); setFont(myEnabledForProject, true); TextHorizontalLayout layout = myMarketplace ? new TextHorizontalLayout(offset) { @Override public void layoutContainer(Container parent) { super.layoutContainer(parent); if (myTagPanel != null && myTagPanel.isVisible()) { int baseline = myTagPanel.getBaseline(-1, -1); if (baseline != -1) { Rectangle versionBounds = myVersion.getBounds(); Dimension versionSize = myVersion.getPreferredSize(); int versionY = myTagPanel.getY() + baseline - myVersion.getBaseline(versionSize.width, versionSize.height); myVersion.setBounds(versionBounds.x, versionY, versionBounds.width, versionBounds.height); if (myDate.isVisible()) { Rectangle dateBounds = myDate.getBounds(); Dimension dateSize = myDate.getPreferredSize(); int dateY = myTagPanel.getY() + baseline - myDate.getBaseline(dateSize.width, dateSize.height); myDate.setBounds(dateBounds.x - JBUIScale.scale(4), dateY, dateBounds.width, dateBounds.height); } } } } } : new TextHorizontalLayout(JBUIScale.scale(7)); JPanel panel2 = new NonOpaquePanel(layout); panel2.setBorder(JBUI.Borders.emptyTop(5)); panel2.add(myTagPanel = new TagPanel(mySearchListener)); (myMarketplace ? panel2 : panel1).add(myVersion); panel2.add(myEnabledForProject); myDate = ListPluginComponent.createRatingLabel(panel2, TextHorizontalLayout.FIX_LABEL, "", null, ListPluginComponent.GRAY_COLOR, true); centerPanel.add(panel2); }