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