Reworked some code to help code analysis. No functional change intended
Reworked some code to help code analysis. No functional change intended

s9e/TextFormatter,s9e/TextFormatter,s9e/TextFormatter,s9e/TextFormatter