if you want a more solid way to check if anything is covering the chatbox:
String s = ChatDialog.getText();
return s != null && s.startsWith(PlayerUtil.getPlayer().getName() + ": ");
returns true if nothing is covering the chatbox, don't think there is a single edge case (yet)