public static Method getDeclaredMethod(Object object, String methodName, Class<?> ... parameterTypes){
        Method method = null ;

        for(Class<?> clazz = object.getClass() ; clazz != Object.class ; clazz = clazz.getSuperclass()) {
            try {
                method = clazz.getDeclaredMethod(methodName, parameterTypes) ;
                return method ;
            } catch (Exception e) {
                //do nothing then can get method from super Class
            }
        }

        return null;
    }
get declaredMethod util find
@param object
@param methodName
@param parameterTypes
@return
core/src/main/java/com/dtstack/flink/sql/util/ReflectionUtils.java