JBIDE-15111 Bad text formatting when inserting JS/CSS

Updated methods private to protected