ThreeState (PsiElement element) { final PsiElement parent = element.getParent(); if (parent instanceof JsonObject) { return ThreeState.YES; } else if (parent instanceof JsonProperty) { return PsiTreeUtil.isAncestor(((JsonProperty)parent).getNameElement(), element, false) ? ThreeState.YES : ThreeState.NO; } return ThreeState.NO; }