}
@Override
protected QuerySpecification createQuery(INamedElement defunit) throws ModelException {
DLTKSearchScopeFactory factory= DLTKSearchScopeFactory.getInstance();
ScriptEditor editor= deeEditor;
IScriptProject scriptProject = deeEditor.getInputModelElement().getScriptProject();
IDLTKSearchScope scope;
String description;
boolean isInsideInterpreterEnvironment = isInsideInterpreterEnv(defunit, factory);
if (editor != null) {
scope= factory.createProjectSearchScope(editor.getEditorInput(), isInsideInterpreterEnvironment);
description= factory.getProjectScopeDescription(editor.getEditorInput(), isInsideInterpreterEnvironment);
} else {
scope= factory.createProjectSearchScope(scriptProject, isInsideInterpreterEnvironment);
description= factory.getProjectScopeDescription(scriptProject, isInsideInterpreterEnvironment);
}