It will be better to refactor this anonymous class to a private class with a proper name describing what it really does, in this case, it executes a method stack, so a MethodStack or StackExecutor or StackHandler may be better, it will be likely a StackHandler.