[java] Best way to "negate" an instanceof