@Field
    public void setSupportedTypes(List<String> supportedTypes) {
        if (this.supportedTypes.size() > 0) {
            throw new IllegalStateException("can't set supportedTypes after initialization");
        }
        for (String s : supportedTypes) {
            this.supportedTypes.add(MediaType.parse(s));
        }
    }
This is set during initialization from a tika-config.
Any calls after initialization will result in a {@link IllegalStateException}.

@param supportedTypes
tika-core/src/main/java/org/apache/tika/parser/external2/ExternalParser.java