private static function getGenericClosureForPluginAwarePreAnalysisVisitor(string $plugin_analysis_class): Closure
    {
        if (property_exists($plugin_analysis_class, 'parent_node_list')) {
            /**
             * Create an instance of $plugin_analysis_class and run the visit*() method corresponding to $node->kind.