You need to implement the extension point of the add clause in the JSDT editor. There you must specify a class that implements the necessary interface, but it differs from the most general IContentAssistProcessor.
Depending on your use case, you can also look at quickAssist and quickFix extension points.
source share