MockFacetConfiguration (final String fileName, final Collection<? extends MockFacetConfiguration> existentFacetConfigurations) { for (MockFacetConfiguration configuration : existentFacetConfigurations) { if (fileName.equals(configuration.getData())) { return null; } } return new MockFacetConfiguration(fileName); }