YAMLSequenceItem () { YAMLSequenceItem sequenceItem = PsiTreeUtil.findChildOfType(createDummyYamlWithText("- dummy"), YAMLSequenceItem.class); assert sequenceItem != null; YAMLValue value = sequenceItem.getValue(); assert value != null; value.deleteChildRange(value.getFirstChild(), value.getLastChild()); return sequenceItem; }