code: public List<Import> getPublicImports() {
          return getImports()
                  .stream()
                  .filter(Import::isPublic)
                  .collect(Collectors.toList());
      }
docs: Returns all public imports in this proto file.