Iterable<PyElement> () { if (getParent() instanceof PyFromImportStatement fromImportStatement) { return StreamEx.of(fromImportStatement.resolveImportSourceCandidates()) .distinct() .map(PyUtil::turnDirIntoInit) .select(PyFile.class) .flatMap(file -> StreamEx.of(file.iterateNames().iterator()) .filter(e -> { String name = e.getName(); return name != null && PyUtil.isStarImportableFrom(name, file); })) .toImmutableList(); } return Collections.emptyList(); }