improved duplicates search in python extract method

according to PY-9639 Extract method: Replace Duplicates: search duplicates by code tree, not by exact text match
Merge remote-tracking branch 'origin/master'
update test data
update test data
update test data
update test data
extract collectUsedJars() function
Semantic highlighting level to avoid conflicts with "unused symbol" annotations [CR-IC-2435], for WI-19396, WI-20126
(cherry picked from commit 56d66dc)
dfa: don't reschedule already processed states, cleanup
dfa: remove queued state duplication
update test data
update test data