I think that using blocks for these (equals(...) { STUFF
MORE STUFF
MORE STUFF
}

would probably be more readable, they are very long lines