Result (@NotNull XmlElementDescriptor element) { if (myGroup.getGroupType() == XmlElementsGroup.Type.LEAF) { if (element.equals(myGroup.getLeafDescriptor())) { return consume(); } else return Result.NONE; } return processSubGroups(element); }