public string[] GetLockingProcessNames() { var processes = FileWrapper.WhoIsLocking(HostsFile); if (processes == null) { return(new string[0]); } return(processes.Select(x => x.MainModule?.FileVersionInfo?.ProductName ?? x.ProcessName).ToArray()); }