public ShaderNodeVariable findNodeOutput(List<ShaderNodeVariable> vars, String rightVarName) {
        ShaderNodeVariable var = null;
        for (ShaderNodeVariable variable : vars) {
            if (variable.getName().equals(rightVarName)) {
                var = variable;
            }
        }
        return var;
    }
Finds a variable with the given name from the list of variable.

@param vars         the list of shader node variables.
@param rightVarName the variable name to search for.
@return the found variable or null is not found.
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java