add constructor modifier check in the Singleton matcher