adding hook to delete trailing whitespace, handling indentation of java anonymous classes properly