Inspection is made active only if type check is the first condition
Intention for replacing type checks with pattern matching
Inspection is active only if type check is performed several times or is followed by a type cast
Check for empty list of names moved to the very end of the suggestNames()
Typo fixed
Bug with if-else in one line fixed