You can set order="first" to completion.contributor in plugin.xml . It seems that your contributor will be called in front of participants from other sources, as a result your suggestions will be the first:
<extensions defaultExtensionNs="com.intellij"> <completion.contributor order="first" language="PHP" implementationClass="org.klesun.deep_assoc_completion.entry.DeepKeysCbtr"/>
When your contributor is called first, you can also write code to decide how to post the following sentences or exclude some of them using CompletionResultSet::runRemainingContributes() and PrioritizedLookupElement::withPriority() suggested by @ peter-gromov:
protected void addCompletions(CompletionParameters parameters, ProcessingContext processingContext, CompletionResultSet result) {
source share