docs: public boolean writeHistoryEnabledForIndex(String index) {
  
          if(index == null) {
              return false;
          }
          
          if(searchguardIndex.equals(index)) {
              return logInternalConfig;
          }
  
          if(auditLogIndex != null && auditLogIndex.equalsIgnoreCase(index)) {
              return false;
          }
  
          if(auditLogPattern != null) {
              if(index.equalsIgnoreCase(getExpandedIndexName(auditLogPattern, null))) {
                  return false;
              }
          }
  
          return WildcardMatcher.matchAny(watchedWriteIndices, index);
      }