boolean (@NotNull Attribute attribute) { final Element parent = attribute.getParent(); if (parent != null && Constants.OPTION.equals(parent.getName())) { final Element grandParent = parent.getParentElement(); return grandParent != null && "configuration".equals(grandParent.getName()); } return false; }