PyImportElement (@NotNull final LanguageLevel languageLevel, @NotNull String name, @Nullable String alias) { final String importStatement = "from foo import " + name + (alias != null ? " as " + alias : ""); return createFromText(languageLevel, PyImportElement.class, importStatement, new int[]{0, 6}); }