docs: public boolean checkIfIgnored(final GraphRewrite event, FileModel file)
      {
          List<String> patterns = getIgnoredFileRegexes();
          boolean ignored = false;
          if (patterns != null && !patterns.isEmpty())
          {
              for (String pattern : patterns)
              {
                  if (file.getFilePath().matches(pattern))
                  {
                      IgnoredFileModel ignoredFileModel = GraphService.addTypeToModel(event.getGraphContext(), file, IgnoredFileModel.class);
                      ignoredFileModel.setIgnoredRegex(pattern);
                      LOG.info("File/Directory placed in " + file.getFilePath() + " was ignored, because matched [" + pattern + "].");
                      ignored = true;
                      break;
                  }
              }
          }
  
          return ignored;
      }