ValidationResultType (@NotNull String data, @NotNull EventContext context) { try { String host = URI.create(data).getHost(); if (JB_DOMAINS.stream().anyMatch(domain -> host.endsWith(domain))) { return ValidationResultType.ACCEPTED; } } catch (Exception ignored) { } return ValidationResultType.REJECTED; }