public String[] getPhrases( final List lookupTokenList ) {
final Set<String> phraseSet = new HashSet<String>();
for ( TextExtractor extractor : iv_textExtractorList ) {
final StringBuilder sb = new StringBuilder();
LookupToken previousLt = null;
for ( Object value : lookupTokenList ) {
final LookupToken lt = (LookupToken)value;
String variant = extractor.getText( lt );
if ( variant == null ) {
variant = lt.getText();
}
if ( previousLt != null && previousLt.getEndOffset() != lt.getStartOffset() ) {
// check delta between previous token and current token
// this delta represents whitespace between tokens
// insert whitespace
sb.append( ' ' );
}