JsonValueAdapter () { if (!(myProperty instanceof YAMLKeyValue)) return null; PsiElement key = ((YAMLKeyValue)myProperty).getKey(); if (key == null) return null; return new YamlPropertyKeyAdapter(key); }