void () { myFixture.enableInspections(new DeprecationInspection()); myFixture.configureByText("B.java", """ class B extends A { B() { this(0); } B(int i) { super(i); } } class A { @Deprecated A() {} A(int i) {} }"""); assertEmpty(myFixture.doHighlighting(HighlightSeverity.WARNING)); }