PyFromImportStatement (@NotNull LanguageLevel languageLevel, @NotNull String qualifier, @NotNull String name, @Nullable String alias) { final String asClause = StringUtil.isNotEmpty(alias) ? " as " + alias : ""; final String statement = "from " + qualifier + " import " + name + asClause; return createFromText(languageLevel, PyFromImportStatement.class, statement); }