YAMLSequence () { YAMLSequence sequence = PsiTreeUtil.findChildOfType(createDummyYamlWithText("- dummy"), YAMLSequence.class); assert sequence != null; sequence.deleteChildRange(sequence.getFirstChild(), sequence.getLastChild()); return sequence; }