Is there a way to transform automatically this static method invocation (Arrays.asList):
Arrays.asList
import java.util.Arrays; import java.util.List; public cla
Put the cursor on the method name (asList) and press Ctrl-Shift-M.
asList
Ctrl-Shift-M
This is the default keyboard shortcut for the 'Add Import' command. You can also find the command on the 'Source' menu.