boolean () { if (isSuppressStatisticsReport() || isLocalStatisticsWithoutReport()) { return false; } if (ApplicationManager.getApplication().isHeadlessEnvironment()) { return isHeadlessStatisticsEnabled(); } UsageStatisticsPersistenceComponent settings = UsageStatisticsPersistenceComponent.getInstance(); return settings != null && settings.isAllowed(); }