public static String evalReturnDescription(IMethodInfo method) { if (method instanceof IGosuMethodInfo) { List<IAnnotationInfo> annotation = method.getAnnotationsOfType(JavaTypes.getGosuType(gw.lang.Returns.class)); if (annotation.size() > 0) { return (String) annotation.get(0).getFieldValue("value"); } } else { return method.getReturnDescription(); } return ""; }