void (@NotNull String expression, @Nullable QualifiedName expectedQualifiedName) { final PyElementGenerator generator = PyElementGenerator.getInstance(myFixture.getProject()); final PyQualifiedExpression expr = (PyQualifiedExpression)generator.createExpressionFromText(LanguageLevel.PYTHON27, expression); assertEquals(expectedQualifiedName, expr.asQualifiedName()); }