void (Graphics2D g) { final List<StaticDecorator> decorators = new ArrayList<>(); final List<RadComponent> selection = myArea.getSelection(); myArea.getRootComponent().accept(new RadComponentVisitor() { @Override public void endVisit(RadComponent component) { component.addStaticDecorators(decorators, selection); } }, true); for (StaticDecorator decorator : decorators) { decorator.decorate(this, g); } }