remove unnecessary casts

a lot of them ...
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
move unnecessarily nested else clause
remove unused import
remove unused import
remove unused import
remove wrong @Override annotations