void (int x, int y, @NotNull Component component, @NotNull Dimension size) { if (component instanceof ActionToolbar) { component.setBounds(x, getInsets().top - JBUI.scale(1), size.width, size.height); } else { component.setBounds(x, y - component.getBaseline(size.width, size.height), size.width, size.height); } }