Can IntelliJ automatically create a decorator class?
问题 Sometimes, I create a decorator class like this: class MyInterfaceDecorator implements MyInterface { private final MyInterface delegate; ... constructor taking a MyInterface instance ... @Override public Object someInterfaceMethod(Some argument) { return delegate.someInterfaceMethod(argument); } ... etc, more methods here... } Can IntelliJ automatically create this class for me? 回答1: Update// I noticed that IntelliJ has a "Generate" option for generating delegate methods. Create a new class: