void () { configureFromFileText("A.java", "class A {{ String[] arr; int index; arr[index]<caret>; }}"); PsiElement element = GotoDeclarationAction.findTargetElement(getProject(), getEditor(), getEditor().getCaretModel().getOffset()); assertNull("Unexpected " + element, element); }