boolean (@NotNull Module module) { final ModuleRootManager rootManager = ModuleRootManager.getInstance(module); for (VirtualFile root : rootManager.getContentRoots()) { if (hasChanges(root, module.getProject())) { return true; } } return false; }