void (Rectangle r, Component c) { if (ComponentUtil.getParentOfType((Class<? extends Wrapper>)Wrapper.class, c) != null && TextFieldWithPopupHandlerUI .isSearchFieldWithHistoryPopup(c)) { int delta = c.getHeight() - c.getPreferredSize().height; if (delta > 0) { delta -= delta % 2 == 0 ? 0 : 1; JBInsets.removeFrom(r, JBInsets.create(delta / 2, 0)); } } }