TypeSelector (Project project, VariableData data, PsiElement[] scopeElements) { final PsiType type = data.type; return new TypeSelector(type != null ? type : PsiType.getJavaLangObject(PsiManager.getInstance(project), scopeElements[0].getResolveScope()), project); }