private void calculateFileName() {
    StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace();
    Optional<StackTraceElement> collectorStackTraceElement =
      Arrays.stream(stackTraceElements).filter(x -> Strings.areSameInstance(x.getClassName(), this.getClass().getName())).findFirst();
    collectorStackTraceElement.ifPresent(element -> fileName = element.getFileName());
  }
private void calculateFileName()