Make it eclipse compatible

proposal.
These two point of code make use of some smart generics, but Eclipse doesn't recognize it and reports compilation errors.
Is there really a benefit in adding the guard if the message is not parameterized at all? IMO it just makes things more verbose, so I'd prefer the simpler pattern unless required otherwise.