Insets (Component c) { if (SystemInfo.isMac) { return new JBInsets(3, 0, 2, 0); } else { int bottom = (StringUtil.getLineBreakCount(myTextArea.getText()) > 0) ? 2 : StartupUiUtil.isUnderDarcula() ? 1 : 0; int top = myTextArea.getFontMetrics(myTextArea.getFont()).getHeight() <= 16 ? 2 : 1; if (JBUIScale.isUsrHiDPI()) { bottom = 0; top = 2; } return new JBInsets(top, 0, bottom, 0); } }