core/src/main/java/io/tracee/contextlogger/utility/TraceeContextLogAnnotationUtilities.java
public static boolean checkMethodHasNonVoidReturnType(final Method method) {

        if (method == null) {
            return false;
        }
        try {

            return !(Void.TYPE == method.getReturnType());

        } catch (Exception e) {
            return false;
        }

    }
public static boolean checkMethodHasNonVoidReturnType(final Method method) {

        if (method == null) {
            return false;
        }
        try {

            return !(Void.TYPE == method.getReturnType());

        } catch (Exception e) {
            return false;
        }

    }
Checks whether the passsed method has a non void return value.

@param method the method to check
@return true if the method has a non void return type, otherwise false