void (@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { try { RadComponent component = extractComponent(value); if (component != null) { myDesigner.getTreeDecorator().decorate(component, this, getAttributeWrapper(component), true); if (myMarkComponent == component) { if (myMarkFeedback == FeedbackTreeLayer.INSERT_SELECTION) { setBorder(BorderFactory.createLineBorder(Color.RED, 1)); } else { setBorder(new InsertBorder(myMarkFeedback)); } } else { setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); } } } catch (RuntimeException e) { if (myDesigner == null) { throw e; } myDesigner.showError(DesignerBundle.message("designer.error.tree.paint.operation"), e); } }