api for (re)creating PHM that rewrites it if it is broken (IDEA-115334)