List<PyImportElement> () { final List<PyImportElement> ret = new ArrayList<>(); final List<PyImportStatement> imports = PyPsiUtils.collectStubChildren(this, getGreenStub(), PyImportStatement.class); for (PyImportStatement one : imports) { ContainerUtil.addAll(ret, one.getImportElements()); } return ret; }