NetBeans comes with a clipboard history built-in. The key combination
shift+command+d (Mac) opens an inline dialog and allows you to pick a previously copied element. You can copy multiple elements and choose one from the stack later.
This approach speeds up considerably the efficient copy-paste based reuse :-).
See you at Java EE Workshops at MUC Airport!
Java EE 7 Workshops: Bootstrap, Effective, Architectures, June, 13th-15th, Munich's Airport
On demand workshops: Java EE 7 Bootstrap, Effective Java EE 7, Java EE 7 Testing and NEW: Java EE 7 Microservices are available for streaming