Configuration (@NotNull Configuration configuration) { if (configuration.getOrder() == 0) { return configuration; } final String uuid = configuration.getUuid(); return myConfigurations.stream().filter(c -> c.getOrder() == 0 && uuid.equals(c.getUuid())).findFirst().orElse(configuration); }