public static Type forNumber(int value) {
          switch (value) {
            case 1: return COMPILE;
            case 2: return CANCEL;
            case 3: return SHUTDOWN;
            default: return null;
          }
        }
public static Type forNumber(int value)