void () { PsiClass dbl = getJavaFacade().findClass(Double.class.getName(), myScope); assertNotNull(dbl); PsiField dnn = dbl.findFieldByName("NaN", false); assertNotNull(dnn); assertEquals(Double.NaN, dnn.computeConstantValue()); PsiClass cls = getFile("../../mirror/pkg/Primitives").getClasses()[0]; PsiField lng = cls.findFieldByName("LONG", false); assertNotNull(lng); assertEquals(42L, lng.computeConstantValue()); }