I want to be able to type something like this:
if (object) {
// some code...
}
and have the compiler see it as this:
if (object != null) {
// some code...
}
Is there any way I can do this?
Alternatively: is there anything that can be done in Eclipse or IntelliJ that will do this?