MetricEvent (@NotNull LicenceType value, @NotNull LicensingFacade licensingFacade) { List<EventPair<?>> data = new ArrayList<>(); String licensedToMessage = licensingFacade.getLicensedToMessage(); if (licensedToMessage != null && licensedToMessage.contains("JetBrains Team")) { data.add(IS_JB_TEAM.with(true)); } String metadata = licensingFacade.metadata; if (StringUtil.isNotEmpty(metadata)) { data.add(METADATA.with(metadata)); } data.add(LICENSE_VALUE.with(value)); data.add(LOGIN_HASH.with(licensingFacade.getLicenseeEmail())); return LICENSING.metric(data); }