userInputQualifiedNameLength = userInputWordLength;
} else {
userInputQualifiedNameLength = caretPosition - startOfModuleName;
try{
final ModuleName moduleName = ModuleName.make(moduleNameString);
final ResolutionResult resolution = perspective.getWorkingModuleTypeInfo().getModuleNameResolver().resolve(moduleName);
listAdapter.setModule(resolution);
}
catch(IllegalArgumentException e){
// if the module name is not valid then there are no suggestions available.