YAMLKeyValue (PsiElement element) { if (PsiUtilCore.getElementType(element) == YAMLTokenTypes.INDENT) { PsiElement prev = element.getPrevSibling(); prev = prev == null ? null : PsiTreeUtil.skipWhitespacesAndCommentsBackward(prev); if (prev instanceof YAMLKeyValue && ((YAMLKeyValue)prev).getValue() == null) { return (YAMLKeyValue)prev; } } return null; }