PsiClass (@NotNull @NonNls final String name) { PsiClass aClass = getJavaFacade().findClass(name, GlobalSearchScope.allScope(getProject())); Assert.assertNotNull("Class " + name + " not found", aClass); return aClass; }