issue-479: reduced code using generics
issue-479: reduced code using generics

CosmicMind/MaterialKit,CosmicMind/Material,GraphKit/MaterialKit,whitepixelstudios/Material,GraphKit/MaterialKit,whitepixelstudios/Material,CosmicMind/MaterialKit,CosmicMind/Material