function getSlicedQueryConfig(queryConfig, targetProjectPath, referenceProjectPath) {
  return /** @type {Partial<AnalyzerQueryResult>} */ ({
    ...queryConfig,
    ...{
      analyzerConfig: {
        ...queryConfig.analyzerConfig,
        ...{
          ...(referenceProjectPath ? { referenceProjectPath } : {}),
          targetProjectPath,
        },
      },
    },
  });
}
Creates unique QueryConfig for analyzer turn
@param {AnalyzerQueryConfig} queryConfig
@param {PathFromSystemRoot} targetProjectPath
@param {PathFromSystemRoot} referenceProjectPath
@returns {Partial<AnalyzerQueryResult>}