See {@link com.intellij.codeInsight.completion.CompletionContributor}.