public static Type forNumber(int value) {
          switch (value) {
            case 1: return BUILD_PARAMETERS;
            case 2: return CANCEL_BUILD_COMMAND;
            case 3: return FS_EVENT;
            case 4: return CONSTANT_SEARCH_RESULT;
            default: return null;
          }
        }
public static Type forNumber(int value)