void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { PsiElement position = parameters.getPosition(); if (!(position instanceof LeafPsiElement)) return; if (!isThemeJsonFile(parameters.getOriginalFile())) return; PsiElement parent = position.getParent(); if (parent instanceof JsonStringLiteral || parent instanceof JsonReferenceExpression) { PsiElement parentParent = parent.getParent(); if (!(parentParent instanceof JsonProperty)) return; handleJsonProperty(position, (JsonProperty)parentParent, parameters, result); } else if (parent instanceof JsonProperty) { handleJsonProperty(position, (JsonProperty)parent, parameters, result); } }