public static boolean hasStepOfAssignableClass(final Class superClass,final Traversal.Admin<?,?> traversal){
  for (  final Step<?,?> step : traversal.getSteps()) {
    if (superClass.isAssignableFrom(step.getClass())) {
      return true;
    }
  }
  return false;
}

public static boolean hasStepOfAssignableClass ( final Class superClass , final Traversal . Admin < ? , ? > traversal ) { for ( final Step < ? , ? > step : traversal . getSteps ( ) ) { if ( superClass . isAssignableFrom ( step . getClass ( ) ) ) { return true ; } } return false ; }
determine if the traversal has a step of an assignable class .
