private Method getRefMethod(ReaderContext context, Method method) {
        try {
            return context.getCls().getMethod(method.getName(), method.getParameterTypes());
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (SecurityException e) {
            e.printStackTrace();
        }
        return method;
    }
Scans a set of classes for Swagger annotations.

@param swagger is the Swagger instance
@param classes are a set of classes to scan
doc-swagger/src/main/java/com/alipay/sofa/rpc/doc/swagger/generate/Reader.java