Refactor ChatModeratorPlugin.java for clarity