added assertion on attempt to remove ContentEntry obtained from another instance of ModuleRootModel
simplification: getOrderEntries moved to DirectoryIndex
JPS builders tests: degroovyzation and kotlinification