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