GROOVY-5742: refactoring of the assignment check method for better readability and debugability
GROOVY-5742: reimplementation of the placeholder extraction and resolving map
GROOVY-5742: adding test case for the issue
Code cleanup: remove getRedirect(Expression,ClassNode) method, not needed anymore