IllegalArgumentException (@NotNull AnAction action) { return new IllegalArgumentException( "Cannot add an action twice: " + action + " (" + (action instanceof ActionStub ? ((ActionStub)action).getClassName() : action.getClass().getName()) + ")"); }