Collection<String> (Class<? extends PyExpression> parentClass) { myFixture.configureByFile(getTestName(true) + ".py"); final IntroduceHandler handler = createHandler(); final PyExpression expr = PsiTreeUtil.getParentOfType(myFixture.getFile().findElementAt(myFixture.getCaretOffset()), parentClass); assertNotNull(expr); return handler.getSuggestedNames(expr); }