private boolean isAdaptableToAsReturn(Class<?> fromType,Class<?> toType){
  return toType.equals(void.class) || !fromType.equals(void.class) && isAdaptableTo(fromType,toType,false);
}

private boolean isAdaptableToAsReturn ( Class < ? > fromType , Class < ? > toType ) { return toType . equals ( void . class ) || ! fromType . equals ( void . class ) && isAdaptableTo ( fromType , toType , false ) ; }
check type adaptability for return types - - special handling of void type ) and parameterized fromtype
