@Override
             protected void addCompletions(@NotNull CompletionParameters parameters,
                                           @NotNull ProcessingContext context,
                                           @NotNull CompletionResultSet result) {

               RestDirectiveBlock original = PsiTreeUtil.getParentOfType(parameters.getOriginalPosition(), RestDirectiveBlock.class);
               if (original != null) {

                 int offset = parameters.getOffset();
                 final PsiFile file = parameters.getOriginalFile();
                 String prefix = getPrefix(offset, file);

                 if (prefix.length() > 0) {
                   result = result.withPrefixMatcher(prefix);
                 }
                 for (String tag : RestUtil.getDirectiveOptions(original.getDirectiveName())) {
                   result.addElement(LookupElementBuilder.create(tag + " "));
                 }
               }
             }
@Override
             protected void addCompletions(@NotNull CompletionParameters parameters,
                                           @NotNull ProcessingContext context,
                                           @NotNull CompletionResultSet result)