void (YAMLSequence yamlSequence) { List<YAMLSequenceItem> items = yamlSequence.getItems(); if (items.size() > 1) { YAMLElementGenerator elementGenerator = YAMLElementGenerator.getInstance(yamlSequence.getProject()); for (int i = 1; i < items.size(); i++) { PsiElement element = items.get(i).getPrevSibling(); if (element != null && element.getNode().getElementType() == YAMLTokenTypes.INDENT) { PsiElement newIndent = elementGenerator.createIndent(0); element.replace(newIndent); } } } }