Adds a log message and creates a recursive parsing plan.

        :param desired_type:
        :param filesystem_object:
        :param logger:
        :param log_only_last: a flag to only log the last part of the file path (default False)
        :return:

def _create_parsing_plan(self, desired_type: Type[T], filesystem_object: PersistedObject, logger: Logger,
                             log_only_last: bool = False):
        """
        Adds a log message and creates a recursive parsing plan.

        :param desired_type:
        :param filesystem_object:
        :param logger:
        :param log_only_last: a flag to only log the last part of the file path (default False)
        :return:
        """
        logger.debug('(B) ' + get_parsing_plan_log_str(filesystem_object, desired_type,
                                                       log_only_last=log_only_last, parser=self))
        return AnyParser._RecursiveParsingPlan(desired_type, filesystem_object, self, logger)