isn't `isScalaDoc` ruled out by the `if (isLocal && !isScalaDoc) {` above?