@Override
  public int getItemIndex() {
    PsiElement parent = getParent();
    if (parent instanceof YAMLSequence) {
      return ((YAMLSequence)parent).getItems().indexOf(this);
    }
    return 0;
  }
@Override
  public int getItemIndex()