### Elasticsearch Version

master branch

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

no

### Problem Description

Redundant Code at line 73 in the source file MembersInjectorStore.java

### Steps to Reproduce

no

### Logs (if relevant)

_No response_
server/src/main/java/org/elasticsearch/common/inject/MembersInjectorStore.java
injectionPoints = InjectionPoint.forInstanceMethodsAndFields(type);
        } catch (ConfigurationException e) {
            errors.merge(e.getErrorMessages());
            injectionPoints = e.getPartialValue();
        }
        List<SingleMemberInjector> injectors = getInjectors(injectionPoints, errors);
        errors.throwIfNewErrors(numErrorsBefore);
        errors.throwIfNewErrors(numErrorsBefore);
        return new MembersInjectorImpl<>(injector, type, injectors);
    }
    /**
     * Returns the injectors for the specified injection points.
     */
    List<SingleMemberInjector> getInjectors(Set<InjectionPoint> injectionPoints, Errors errors) {
        List<SingleMemberInjector> injectors = new ArrayList<>();
        for (InjectionPoint injectionPoint : injectionPoints) {
            try {
                Errors errorsForMember = injectionPoint.isOptional() ? new Errors(injectionPoint) : errors.withSource(injectionPoint);
                SingleMemberInjector injector = injectionPoint.getMember() instanceof Field
                    ? new SingleFieldInjector(this.injector, injectionPoint, errorsForMember)
                    : new SingleMethodInjector(this.injector, injectionPoint, errorsForMember);
                injectors.add(injector);
            } catch (ErrorsException ignoredForNow) {
                
            }
        }
        return Collections.unmodifiableList(injectors);
    }
}