ValidationResultType (@NotNull String data, @NotNull EventContext context) { if (isThirdPartyValue(data)) return ValidationResultType.ACCEPTED; Boolean isJB = ourContributorsMap.get(data); return isJB == null ? ValidationResultType.REJECTED : isJB.booleanValue() ? ValidationResultType.ACCEPTED : ValidationResultType.THIRD_PARTY; }