void () { final var components = getComponents(); final var bounds = getBounds(); for (Component component : components) { if (component == editorComponent) { component.setBounds(0, 0, bounds.width, bounds.height); } else { final var preferredComponentSize = component.getPreferredSize(); var x = 0; var y = 0; if (component instanceof LayoutActionsFloatingToolbar) { x = bounds.width - preferredComponentSize.width - toolbarRightPadding; y = toolbarTopPadding; } component.setBounds(x, y, preferredComponentSize.width, preferredComponentSize.height); } } }