AccessToken () { CommandProcessor instance = CommandProcessor.getInstance(); String commandName = instance.getCurrentCommandName(); instance.setCurrentCommandName(JavaBundle.message("generate.members.implement.command")); return new AccessToken() { @Override public void finish() { instance.setCurrentCommandName(commandName); } }; }