void () { Sdk sdk = PsiTestUtil.addJdkAnnotations(IdeaTestUtil.getMockJdk17()); WriteAction.runAndWait(() -> ProjectJdkTable.getInstance().addJdk(sdk, getTestRootDisposable())); ModuleRootModificationUtil.setModuleSdk(myModule, sdk); PsiClass mapClass = myJavaFacade.findClass(CommonClassNames.JAVA_UTIL_MAP); PsiMethod mapPut = mapClass.findMethodsByName("put", false)[0]; PsiAnnotation annotation = AnnotationUtil.findAnnotation(mapPut, Flow.class.getName()); assertNotNull(annotation); assertNull(annotation.getNameReferenceElement().resolve()); String doc = JavaDocumentationProvider.generateExternalJavadoc(mapPut); assertFalse(doc, doc.contains("Flow")); }