List<ConfigurationFromContext> (ConfigurationContext context) { final List<ConfigurationFromContext> fromContext = context.getConfigurationsFromContext(); if (fromContext == null) { return Collections.emptyList(); } final List<ConfigurationFromContext> enabledConfigurations = new ArrayList<>(); for (ConfigurationFromContext configurationFromContext : fromContext) { if (isEnabledFor(configurationFromContext.getConfiguration(), context)) { enabledConfigurations.add(configurationFromContext); } } return enabledConfigurations; }