boolean (@NotNull JsonProperty property) { PsiElement parent = property; while ((parent = parent.getParent()) != null) { if (!(parent instanceof JsonProperty)) continue; if (UI_PROPERTY_NAME.equals(((JsonProperty)parent).getName())) return true; } return false; }