public bool TryGetDocumentOption(OptionKey option, out object?value) { var editorConfigPersistence = option.Option.StorageLocations.OfType <IEditorConfigStorageLocation>().SingleOrDefault(); if (editorConfigPersistence == null) { value = null; return(false); } try { return(editorConfigPersistence.TryGetOption(_options.AsNullable(), option.Option.Type, out value)); } catch (Exception e) when(FatalError.ReportWithoutCrash(e)) { value = null; return(false); } }