List<PsiElement> () { var file = (PyFile)myFixture.configureByFile(FOLDER_NAME + "/true/test_something.py"); PyFunction test = file.findTopLevelFunction("test_test"); assert test != null : "No test_test found"; return Collections.singletonList(test); }