private static @Nullable PsiElement getParentPropertyOrArrayItem(@Nullable PsiElement startElement) {
    PsiElement propertyOrArrayItem = PsiTreeUtil.getParentOfType(startElement, JsonProperty.class, JsonArray.class);
    if (propertyOrArrayItem instanceof JsonArray) {
      for (JsonValue value : ((JsonArray)propertyOrArrayItem).getValueList()) {
        if (PsiTreeUtil.isAncestor(value, startElement, false)) {
          return value;
        }
      }
      return null;
    }
    return propertyOrArrayItem;
  }
private static @Nullable PsiElement getParentPropertyOrArrayItem(@Nullable PsiElement startElement)