public static @Nullable PsiElement findSiblingForward(@NotNull PsiElement element,
                                                        @NotNull IElementType elementType,
                                                        boolean strict,
                                                        @Nullable Consumer<? super PsiElement> consumer) {
    for (PsiElement e = strict ? element.getNextSibling() : element; e != null; e = e.getNextSibling()) {
      if (elementType.equals(e.getNode().getElementType())) {
        return e;
      }
      if (consumer != null) consumer.consume(e);
    }
    return null;
  }
public static @Nullable PsiElement findSiblingForward(@NotNull PsiElement element,
                                                        @NotNull IElementType elementType,
                                                        boolean strict,
                                                        @Nullable Consumer<? super PsiElement> consumer)