YAMLCompoundValue compoundValue = ObjectUtils.tryCast(element, YAMLCompoundValue.class);
if (compoundValue != null) {
compoundValue.acceptChildren(new PsiElementVisitor() {
@Override
public void visitElement(PsiElement element) {
YAMLSequence yamlSequence = ObjectUtils.tryCast(element, YAMLSequence.class);
if (yamlSequence != null) {
PsiReference ref = getReferenceBySequence(basePathInfo, keyValue, yamlSequence);
if (ref != null) {
references.add(ref);
}