PsiClass () { final PsiManager psiManager = PsiManager.getInstance(myProject); String classQName = myClassName.getText(); if (classQName.isEmpty()) { return null; } return JavaPsiFacade.getInstance(psiManager.getProject()).findClass(classQName, GlobalSearchScope.allScope(myProject)); }