void (@NotNull String targetFile, @NotNull String expectedQualifiedName) { myFixture.copyDirectoryToProject(getTestName(true), ""); myFixture.configureByFile(targetFile); final PsiElement target = myFixture.getElementAtCaret(); final PyQualifiedNameProvider provider = new PyQualifiedNameProvider(); final String actualQualifiedName = provider.getQualifiedName(myFixture.getElementAtCaret()); assertEquals(expectedQualifiedName, actualQualifiedName); final PsiElement element = provider.qualifiedNameToElement(expectedQualifiedName, myFixture.getProject()); assertEquals(target, element); }