presto-main/src/main/java/io/prestosql/operator/scalar/annotations/ScalarImplementationHeader.java/ScalarImplementationHeader/annotatedName
class ScalarImplementationHeader:    private static String annotatedName(AnnotatedElement annotatedElement)
    {
        if (annotatedElement instanceof Class<?>) {
            return ((Class<?>) annotatedElement).getSimpleName();
        }
        if (annotatedElement instanceof Method) {
            return ((Method) annotatedElement).getName();
        }

        checkArgument(false, "Only Classes and Methods are supported as annotated elements.");
        return null;
    }