Create materials via code on runtime

Hi,
How can I create a new material via code on runtime? Is there any pre-prepared PBR material in Armory that I can create and link textures/set colors?

I tried finding answer in ArmorPaint’s sources but I couldn’t find any leads.