void (final T component, final boolean modified) { Property topmostParent = this; while (topmostParent.getParent() != null) { topmostParent = topmostParent.getParent(); } if (modified) { component.markPropertyAsModified(topmostParent); } else { component.removeModifiedProperty(topmostParent); } }