code: public static boolean checkMethodHasNonVoidReturnType(final Method method) {
  
          if (method == null) {
              return false;
          }
          try {
  
              return !(Void.TYPE == method.getReturnType());
  
          } catch (Exception e) {
              return false;
          }
  
      }
docs: 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