public static function isInstanceOf($class_name) {
    $classes = func_get_args();

    return function ($node) use ($classes) {
      foreach ($classes as $class) {
        if ($node instanceof $class) {
          return TRUE;
        }
      }
      return FALSE;
    };
  }
public static function isInstanceOf($class_name) {
    $classes = func_get_args();

    return function ($node) use ($classes) {
      foreach ($classes as $class) {
        if ($node instanceof $class) {
          return TRUE;
        }
      }
      return FALSE;
    };
  }
public static function isInstanceOf ( $ class_name ) { $ classes = func_get_args ( ) ; return function ( $ node ) use ( $ classes ) { foreach ( $ classes as $ class ) { if ( $ node instanceof $ class ) { return TRUE ; } } return FALSE ; } ; }
Callback to filter for nodes of certain types.

@param string $class_name ...
At least one fully-qualified Pharborist node type to search for.

@return callable
Callback to filter for nodes of certain types .