void (JPanel body, @NlsContexts.HintText String text) { JLabel hintLabel = new JBLabel(text); hintLabel.setForeground(UIUtil.getContextHelpForeground()); hintLabel.setVerticalAlignment(SwingConstants.TOP); hintLabel.setFont(JBUI.Fonts.smallFont()); //noinspection UseDPIAwareInsets body.add(hintLabel, new GridBagConstraints( 0, GridBagConstraints.RELATIVE, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, new Insets(JBUIScale.scale(16), 0, JBUIScale.scale(10), 0), 0, 0) ); }