void () { final UnnecessaryFinalOnLocalVariableOrParameterInspection inspection = new UnnecessaryFinalOnLocalVariableOrParameterInspection(); inspection.onlyWarnOnAbstractMethods = true; myFixture.enableInspections(inspection); doTest("interface X {" + " default void m(final String s) {}" + " static void n(final String s) {}" + " void o(/*Unnecessary 'final' on parameter 's'*/final/**/ String s);" + "}"); }