private Optional<String> parsePackageName(String className) {
    Optional<String> result;
    if (className == null) {
      result = null;
    } else {
      if (className.contains(".")) {
        int lastDot = className.lastIndexOf(".");
        result = Optional.of(className.substring(0, lastDot));
      } else {
        result = Optional.empty();
      }
    }
    return result;
  }
build a LocationInfo instance from one line of a stackTrace

@param fullInfo one line from a stacktrace)
@return a LocationInfo based on the input (or null if input could not be parsed)
olv-api/src/main/java/pl/otros/logview/api/model/LocationInfo.java