void (final GuiEditor editor, final ComponentPtr[] ptrs) { FormEditingUtil.clearSelection(editor.getRootContainer()); for(int i = ptrs.length - 1; i >= 0; i--){ final ComponentPtr ptr = ptrs[i]; ptr.validate(); if(ptr.isValid()){ ptr.getComponent().setSelected(true); } } }