ICompletionContext context = getContext();
if (!(context instanceof AbstractCompletionContext)) {
return;
}
AbstractCompletionContext abstractContext = (AbstractCompletionContext) context;
int offset = abstractContext.getOffset();
ISourceModule sourceModule = abstractContext.getSourceModule();
List<String> useTypes = abstractContext.getUseTypes();
String prefix = abstractContext.getPrefix();
ModuleDeclaration moduleDeclaration = SourceParserUtil
.getModuleDeclaration(sourceModule, null);
FileContext fileContext = new FileContext(sourceModule,
moduleDeclaration, offset);
SourceRange replacementRange = getReplacementRange(abstractContext);