void (Component component) { // GridLayoutManager use min and max component size for calc final size: com.intellij.uiDesigner.core.Util.adjustSize // sets min size < avg values in tests // sets max size > avg values in tests component.setMinimumSize(new Dimension(10, 10)); component.setMaximumSize(new Dimension(1000, 10)); }