void () { final String className = Object.class.getName(); final PsiClass objectClass = getJavaFacade().findClass(className, GlobalSearchScope.allScope(getProject())); assertEquals(objectClass, createElement("<a>" + className + "</a>").getPsiClass()); assertNull(createElement("<a>abcdef</a>").getPsiClass()); }