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