Fix ClassCastException due to invalid *ProcessedUnit equals() implementations

Description

Need to update logic in equals methods to check against passed object class. Instead of:

do next check:

Environment

None

Status

Assignee

Marko Bekhta

Reporter

Marko Bekhta

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Minor
Configure