private static void annotateFileSequence(@NotNull YAMLSequence sequence,
@NotNull final AnnotationHolder holder,
@Nullable final VirtualFile basePath,
@NotNull final String expectedIndent) {
checkSequenceIndent(sequence, holder, expectedIndent);
sequence.acceptChildren(new PsiElementVisitor() {
@Override
public void visitElement(PsiElement element) {
if (element instanceof YAMLSequence) {
YAMLSequence childSequence = (YAMLSequence) element;
annotateFileSequence(childSequence, holder, basePath, expectedIndent);