private static PsiElement addSequenceItem(@NotNull YAMLSequence sequence, @NotNull String itemValue) {
      YAMLElementGenerator generator = YAMLElementGenerator.getInstance(sequence.getProject());
      YAMLSequenceItem sequenceItem = generator.createSequenceItem(itemValue);

      PsiElement lastChild = sequence.getLastChild();
      if (lastChild != null && lastChild.getNode().getElementType() != YAMLTokenTypes.EOL) {
        sequence.add(generator.createEol());
      }
      List<YAMLSequenceItem> items = sequence.getItems();
      YAMLSequenceItem lastItem = items.get(items.size() - 1);

      int indent = lastChild != null ? YAMLUtil.getIndentToThisElement(lastItem) : YAMLUtil.getIndentToThisElement(sequence) + 2;
      sequence.add(generator.createIndent(indent));
      return sequence.add(sequenceItem);
    }
private static PsiElement addSequenceItem(@NotNull YAMLSequence sequence, @NotNull String itemValue)