Extract method errors

When you attempt to extract a method, you may get one or more of the following common errors:

Related concepts

Java development tools (JDT)
Refactoring support

Related tasks

Extracting a method
Using Structured Selection

Related reference

Source menu
Refactor Menu