private static PsiElement skipSpaceElementsUpToLine(PsiElement element) {
    int eol = 0;
    while (element != null) {
      IElementType elementType = PsiUtilCore.getElementType(element);
      if (YAMLElementTypes.EOL_ELEMENTS.contains(elementType)) {
        if (eol > 0) break;
        eol++;
      }
      if (!YAMLElementTypes.SPACE_ELEMENTS.contains(elementType)) break;
      element = element.getNextSibling();
    }
    return element;
  }
private static PsiElement skipSpaceElementsUpToLine(PsiElement element)