void (ElementPattern<String> prefixCondition) { CompletionProcess process = myParameters.getProcess(); if (process instanceof CompletionProcessBase) { ((CompletionProcessBase)process) .addWatchedPrefix(myParameters.getOffset() - getPrefixMatcher().getPrefix().length(), prefixCondition); } }