void (String name) { getTestFile(); GlobalSearchScope scope = GlobalSearchScope.allScope(myFixture.getProject()); Collection<PyTargetExpression> result = PyVariableNameIndex.find(name, myFixture.getProject(), scope); assertEquals(0, result.size()); }