A new tool could help contractors avoid lawsuits