void () { Object a = "reason:"; My.assertTrue(a instanceof java.lang.String, "ignore" ); Assertions.assertFalse(a instanceof java.lang.String, "ignore"); Assertions.<warning descr="'assertTrue()' can be simplified to 'assertInstanceOf()'">assertTrue</warning>(a instanceof java.lang.String); org.junit.jupiter.api.Assertions.<warning descr="'assertTrue()' can be simplified to 'assertInstanceOf()'">assertTrue</warning>(a instanceof java.lang.String, "message"); <warning descr="'assertTrue()' can be simplified to 'assertInstanceOf()'"><caret>assertTrue</warning>(a instanceof java.lang.String, () -> a + " message"); Child.<warning descr="'assertTrue()' can be simplified to 'assertInstanceOf()'">assertTrue</warning>(a instanceof java.lang.String, "message"); Child.assertTrue(a instanceof java.lang.String, "message1", "message2"); Child.assertTrue(a instanceof java.lang.String, "message1", "message2", "message3"); Assert.assertTrue(a instanceof java.lang.String, "ignore" ); }