protected boolean updateVariableFromList(ShaderNodeVariable var, List<ShaderNodeVariable> list) {
        for (ShaderNodeVariable shaderNodeVariable : list) {
            if (shaderNodeVariable.getName().equals(var.getName())) {
                var.setType(shaderNodeVariable.getType());
                var.setMultiplicity(shaderNodeVariable.getMultiplicity());
                var.setNameSpace(shaderNode.getName());
                return true;
            }
        }
        return false;
    }
Searches a variable in the given list and updates its type and namespace.

@param var  the variable to update.
@param list the variables list.
@return true if the variable has been found and updated.
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java