Tokens::getImportUseIndexes - simplify function

Refs: #860

// cc @ceeram