public boolean matchSequentially(PsiElement @NotNull [] elements1, PsiElement @NotNull [] element2) {
    return matchSequentially(new FilteringNodeIterator(new ArrayBackedNodeIterator(elements1), getNodeFilter()),
                             new FilteringNodeIterator(new ArrayBackedNodeIterator(element2), getNodeFilter()));
  }
public boolean matchSequentially(PsiElement @NotNull [] elements1, PsiElement @NotNull [] element2)