public function build($name, Collection $fields = null)
    {
        $path = $this->getClassFilePath($name);

        $contents = view('_hierarchy::entities.form', [
            'name'   => $this->getClassName($name),
            'fields' => $fields ?: []
        ])->render();

        $this->write($path, $contents);
    }