public static String extractMethodName(final MethodDescriptor<?, ?> method) {
        // This method is the equivalent of MethodDescriptor.extractFullServiceName
        final String fullMethodName = method.getFullMethodName();
        final int index = fullMethodName.lastIndexOf('/');
        if (index == -1) {
            return fullMethodName;
        }
        return fullMethodName.substring(index + 1);
    }
Extracts the method name from the given method.

@param method The method to get the method name from.
@return The extracted method name.
@see #extractServiceName(MethodDescriptor)
grpc-common-spring-boot/src/main/java/net/devh/boot/grpc/common/util/GrpcUtils.java