return method;
}
public static TitleComponent of(final Method method) {
final Title annotation = method.getAnnotation(Title.class);
final String prepend = annotation != null ? annotation.prepend() : " ";
final String append = annotation != null ? annotation.append() : "";
final int abbreviateTo = annotation != null ? annotation.abbreviatedTo() : Integer.MAX_VALUE;
return new TitleComponent(prepend, append, method, abbreviateTo);
}
}