It is very easy to copy and paste fragments of code between different files with
IntelliJ
IDEA
because it automatically inserts necessary imports to the destination file to make the code compilable.