void () { PsiClass aClass = getJavaFacade().findClass(CommonClassNames.JAVA_UTIL_HASH_MAP, myScope); assertNotNull(aClass); PsiTypeParameter[] parameters = aClass.getTypeParameters(); assertEquals(2, parameters.length); assertEquals("K", parameters[0].getName()); assertEquals("V", parameters[1].getName()); PsiClassType extType = aClass.getExtendsListTypes()[0]; assertEquals("java.util.AbstractMap<K,V>", extType.getCanonicalText()); PsiType returnType = aClass.findMethodsByName("entrySet", false)[0].getReturnType(); assertNotNull(returnType); assertEquals("java.util.Set<java.util.Map.Entry<K,V>>", returnType.getCanonicalText()); PsiType paramType = aClass.findMethodsByName("putAll", false)[0].getParameterList().getParameters()[0].getType(); assertNotNull(paramType); assertEquals("java.util.Map<? extends K,? extends V>", paramType.getCanonicalText()); assertNotNull(((PsiClassType)paramType).resolveGenerics().getElement()); }