void () { configure(); final PsiField field = PsiTreeUtil.findChildOfType(getFile(), PsiField.class); final PsiElement element = GotoDeclarationAction.findTargetElement(getProject(), getEditor(), getEditor().getCaretModel().getOffset()); assertThat(element).isEqualTo(field); }