code: void fileReadCheck(String filePath) {
          File potentialFile = new File(filePath);
          String canonicalPath;
          try {
              canonicalPath = potentialFile.getCanonicalPath();
          } catch (IOException e) {
              error("Error getting canonical path", e);
              throw getException(filePath);
          }
  
          if (forbiddenReadFiles.stream().anyMatch(canonicalPath::startsWith)) {
              throw getException(filePath);
          }
      }
docs: Determines if the file at the given file path is safe to read from in all aspects, if so returns true, else false
  
  @param filePath the path to the file to read from