public static boolean isDtoWith(Method method){
  if (method.isAnnotationPresent(DelegateTo.class)) {
    return false;
  }
  String methodName=method.getName();
  return methodName.startsWith("with") && method.getParameterTypes().length == 1;
}

public static boolean isDtoWith ( Method method ) { if ( method . isAnnotationPresent ( DelegateTo . class ) ) { return false ; } String methodName = method . getName ( ) ; return methodName . startsWith ( "with" ) && method . getParameterTypes ( ) . length == 1 ; }
check is specified method is dto with .
