class MyTest { void dblCast() { synchronized ((Runnable) (Runnable) () -> {}) {} synchronized ((Runnable) (Runnable)(Runnable) () -> {}) {} } }