void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { PsiElement position = parameters.getPosition(); if (!DGMUtil.isInDGMFile(position)) return; Map<String, String> map = ((PropertiesFile)position.getContainingFile()).getNamesMap(); for (String key : DGMUtil.KEYS) { if (!map.containsKey(key)) { result.addElement(LookupElementBuilder.create(key)); } } }