DataContext dataContext = DataManager.getInstance().getDataContext();
Project project = DataKeys.PROJECT.getData(dataContext);
this.myManager = (PsiManagerEx) PsiManager.getInstance(project);
Currently I'm doing this in the constructor of my ReferencesSearch object, is this correct? If these objects have application scope, this won't work in the presence of multiple projects. Should I be doing this lookup in the execute() method each time it's called?