public boolean accept(@NotNull String current) {
    EventLogMajorVersion build = EventLogMajorVersion.fromString(current);
    if (!isValidMajorVersion(build)) {
      return false;
    }

    EventLogMajorVersion toVersion = EventLogMajorVersion.fromString(to);
    EventLogMajorVersion fromVersion = EventLogMajorVersion.fromString(from);
    if (!isValidMajorVersion(toVersion) && !isValidMajorVersion(fromVersion)) {
      return false;
    }

    return (fromVersion == null || fromVersion.compareTo(build) <= 0) &&
           (toVersion == null || toVersion.compareTo(build) > 0);
  }
public boolean accept(@NotNull String current)