void () { RestGotoProvider provider = new RestGotoProvider(); final String path = "/goto/empty.rst"; myFixture.configureByFile(path); int e = myFixture.getCaretOffset(); PsiElement result = provider.getGotoDeclarationTarget(myFixture.getFile().findElementAt(e), myFixture.getEditor()); assertNull(result); }