void (@Nullable CompletionType type, final @NotNull ElementPattern<? extends PsiElement> place, CompletionProvider<CompletionParameters> provider) { myMap.putValue(type, new Pair<>(place, provider)); }