Get rid of an isInstanceOf check
Inline a method call
Simplify a Boolean expression