private static void skipIfNecessary(@NotNull NodeIterator nodes, PsiElement elementToMatchWith, @NotNull MatchingStrategy strategy) {
    while (nodes.hasNext() && strategy.shouldSkip(nodes.current(), elementToMatchWith)) {
      nodes.advance();
    }
  }
private static void skipIfNecessary(@NotNull NodeIterator nodes, PsiElement elementToMatchWith, @NotNull MatchingStrategy strategy)