boolean (@NotNull Attribute attribute) { final Element parent = attribute.getParent(); if ("mapping".equals(parent.getName()) && "remote-root".equals(attribute.getName())) { return true; } return false; }