static String getNameOrDefault(Object element, String defaultName) {
        try {
            return getName(element);
        } catch (Exception ignored) {
            return defaultName;
        }
    }
Returns the name of the specified element or the default name if it can't get.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotatedElementNameUtil.java