public void setExternalFilter(TrivialTokenFilter externalFilter) {
this.externalFilter = externalFilter;
}
public void addTokensFromArtifact(Artifact artifact) {
Tokenizer tokenizer = owningRepository.getTokenizerFactory().create(artifact.getContent());
List<Token> tokens = tokenizer.listTokens();
for (Token token : tokens) {
IndexEntry entry = getIndexEntryForToken(token, true);
if (!isTrivialToken(token)) {
entry.addOrigin(artifact.getId());
testNonTriviality(entry, token);