internal static void DisplayProjectNotFoundMessageFormat(ProjectNotFoundException ex, bool debugMode = false)
    {
        Console.WriteLine("");
        Colorful.Console.WriteLine(ex.Message, Color.Red);
        Console.WriteLine("");

        if (debugMode)
        {
            var baseEx = ex.GetBaseException();
            Colorful.Console.WriteLine(baseEx.StackTrace, Color.Red);
            Console.WriteLine("");
        }

        DisplayProgramHasTerminatedMessage();
    }
    internal static void LogToFileIfDebugMode(ProjectNotFoundException ex, string logFileName, bool debugMode)
    {
        if (debugMode)
        {
            Colorful.Console.WriteLine(ConsoleMessageConstants.CheckLog, Color.Red);

            LoggingManager.Instance.Initialize(logFileName, true);

            Colorful.Console.WriteLine(ex.Message, Color.Red);

            var baseEx = ex.GetBaseException();
            Colorful.Console.WriteLine(baseEx.StackTrace, Color.Red);

            LoggingManager.Instance.WriteError($"{ex.Message}\n{baseEx.StackTrace}");

            LoggingManager.Instance.Close();
        }
    }