reuse scaladoc code as much as possible