class ImportListBuilder {

  @Nonnull
  public List<DAImport> getImports(@Nonnull final String currentPackage) {
    checkNotNull(currentPackage, "currentPackage can not be null. Use the empty string for the default package");

    if (imports.isEmpty()) {
      return Collections.emptyList();
    }

    Map<DAName, List<DAImport>> indexBySimpleName = indexImportsBySimpleName(imports);
    return from(indexBySimpleName.values())
        .transform(new ImportSelector(currentPackage))
        .filter(Predicates.notNull())
        // MapperDependency must not appear in any generated class/interface
        .filter(FILTER_OUT_MAPPER_DEPENDENCY_ANNOTATION_IMPORT)
        .toList();
  }

}