public static void validateNumericType(Number number) {
        if (!(number instanceof Integer) && !(number instanceof Double)  && !(number instanceof Long)) {
            throw new RuntimeException("Unsupported Number type: " + number.getClass().toString());
        }
    }