void () { Sdk jdk8 = IdeaTestUtil.getMockJdk(LanguageLevel.JDK_1_8.toJavaVersion()); Sdk jdk8_copy = IdeaTestUtil.getMockJdk(LanguageLevel.JDK_1_8.toJavaVersion()); String someRandomStrangePath = FileUtil.toSystemIndependentName(PlatformTestUtil.getCommunityPath()) + "/java/jdkAnnotations/javax"; VirtualFile root = LocalFileSystem.getInstance().findFileByPath(someRandomStrangePath); Sdk jdk8_annotated = PsiTestUtil.addRootsToJdk(jdk8, AnnotationOrderRootType.getInstance(), root); Sdk jdk11 = IdeaTestUtil.getMockJdk(LanguageLevel.JDK_11.toJavaVersion()); assertTrue(areSdkEqual(jdk8, jdk8)); assertTrue(areSdkEqual(jdk8, jdk8_copy)); assertFalse(areSdkEqual(jdk8, jdk11)); assertFalse(areSdkEqual(jdk8, jdk8_annotated)); }