void () { myFixture.configureByText("a.java", "class a {{ v<caret>ar s = \"\";}}"); PsiElement element = TargetElementUtil.findTargetElement(myFixture.getEditor(), TargetElementUtil.getInstance().getAllAccepted()); assertInstanceOf(element, PsiClass.class); }