int offset = getOffset(commandLine);
IJavaScriptUnit src = JavaScriptUtils.getJavaScriptUnit(project, file);
CompletionRequestor collector = new CompletionRequestor();
src.codeComplete(offset, collector);
return collector.getResults();
}
public static class CompletionRequestor