List<PsiElement> () { configureSrcFolder(myFixture); myFixture.configureByFile("test_with_src/foo/src/test_test.py"); final PyFunction test = myFixture.findElementByText("test_test", PyFunction.class); assert test != null; return Collections.singletonList(test); }