@NotNull
  private static TextCompletionProvider getCompletionProvider(@NotNull final List<String> targetVariants) {
    return new ValuesCompletionProviderDumbAware<>(new DefaultTextCompletionValueDescriptor.StringValueDescriptor() {
      @Override
      public int compare(String item1, String item2) {
        return Integer.compare(targetVariants.indexOf(item1), targetVariants.indexOf(item2));
      }
    }, targetVariants);
  }
@NotNull
  private static TextCompletionProvider getCompletionProvider(@NotNull final List<String> targetVariants)