class DataUtils {

    public static List<DbDependency> getAllDbDependencies(final DbModule module) {
        final List<DbDependency> dependencies = new ArrayList<DbDependency>();
        dependencies.addAll(module.getDependencies());

        for(final DbModule submodule: module.getSubmodules()){
            dependencies.addAll(getAllDbDependencies(submodule));
        }

        return dependencies;
    }

    private  DataUtils();

}