public String fixSamplerType(String leftType, String rightType) {
        String[] types = rightType.split("\\|");
        for (String string : types) {
            if (leftType.equals(string)) {
                return string;
            }
        }
        return null;
    }
retrieve the leftType corresponding sampler type from the rightType

@param leftType the left samplerType
@param rightType the right sampler type (can be multiple types separated
by "|"
@return the type or null if not found
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java