HarmonyDetector constructor access changed back to package private