boolean (@NotNull NodeIterator elements, @NotNull NodeIterator elements2) { if ((!elements.hasNext() && isLeftLooseMatching()) || (!elements2.hasNext() && isRightLooseMatching()) || (!elements.hasNext() && !elements2.hasNext()) ) { return true; } return doMatchInAnyOrder(elements, elements2); }