8057588: Lots of trivial (empty) classes were generated by the Nashorn compiler as part of restOf-method generationReviewed-by: attila, sundar, hannesw