in project/CopyrightHeader.scala [71:84]
override def apply(text: String, existingText: Option[String]): String = {
val formatted = existingText match {
case Some(currentText) if isApacheCopyrighted(currentText) || isGenerated(currentText) =>
currentText
case Some(currentText) if isOnlyLightbendCopyrightAnnotated(currentText) =>
HeaderCommentStyle.twirlStyleBlockComment.commentCreator(apacheFromAkkaSourceHeader,
existingText) + NewLine * 2 + currentText
case Some(currentText) =>
throw new IllegalStateException(s"Unable to detect copyright for header: [$currentText]")
case None =>
HeaderCommentStyle.twirlStyleBlockComment.commentCreator(text, existingText)
}
formatted.trim
}