void () { Sdk sdk = IdeaTestUtil.getMockJdk18(); WriteAction.run(() -> ProjectJdkTable.getInstance().addJdk(sdk, getTestRootDisposable())); ModuleRootModificationUtil.setModuleSdk(getModule(), sdk); PsiClass aClass = myFixture.getJavaFacade().findClass("java.util.ResourceBundle.CacheKeyReference"); PsiFile file = aClass.getContainingFile(); myFixture.configureFromExistingVirtualFile(file.getVirtualFile()); myFixture.getEditor().getCaretModel().moveToOffset(aClass.getTextOffset()); assertSize(2, getTargets(file)); }