public static void validateNumericTypes(Number number1, Number number2) {
        if ((number1 instanceof Integer) && (number2 instanceof Integer)) {
            return;
        }
        if ((number1 instanceof Long) && (number2 instanceof Long)) {
            return;
        }
        if ((number1 instanceof Double) && (number2 instanceof Double)) {
            return;
        }
        throw new RuntimeException("Unsupported Number types: " + number1.getClass().toString() + " " + number2.getClass().toString());
    }