Hi Omary_KOO,
Have you already seen this thread?
If you cannot make “extract method” work, don’t waste your time with that irrelevant feature. Create a new method, and paste the code there.
See also: