void (final @NotNull CompletionParameters parameters, final @NotNull CompletionResultSet result) { if (parameters.getCompletionType() != CompletionType.BASIC) return; if (domKnowsBetter(parameters, result)) { result.stopHere(); } }