protected Doc searchUp(ReflectMethod m, ReflectParameter p) { Class<?> c = m.getReflectedMethod().getDeclaringClass(); for(Class<?> ic : c.getInterfaces()) { try { Method im = ic.getMethod(m.getName(), m.getReflectedMethod().getParameterTypes()); return im.getParameters()[p.getIndex()-1].getAnnotation(Doc.class); } catch (NoSuchMethodException e) { //do nothing. } } return null; }