LayeredPanel extends JBLayeredPane implements SideModel.Listener<T>, Disposable { @Override public void doLayout() { myDefaultLayer.setBounds(0, 0, getWidth(), getHeight()); mySplitter.setBounds(0, 0, getWidth(), getHeight()); } LayeredPanel(@NotNull String benchName, @NotNull JComponent defaultLayer, @NotNull SideModel<T> model);   LayeredPanel(@NotNull String benchName,
               @NotNull JComponent defaultLayer,
               @NotNull SideModel<T> model,
               @NotNull PropertiesComponent propertiesComponent); @Override void modelChanged(@NotNull SideModel<T> model, @NotNull SideModel.EventType unused); @Override void doLayout(); @Override void dispose();  }
@Test public void testDoLayout() { myPanel.setSize(800, 600); myPanel.doLayout(); assertThat(myMainContent.getBounds()).isEqualTo(new Rectangle(0, 0, 800, 600)); assertThat(mySplitter.getBounds()).isEqualTo(new Rectangle(0, 0, 800, 600)); }