import java.util.function.Consumer; class Test { interface IOfInt extends Consumer { default void accept(Integer i) {} } interface TS extends Consumer {} interface TS1 extends TS {} class OfInt implements TS, IOfInt {} class OfInt1 implements Consumer, IOfInt {} class OfInt2 implements TS, IOfInt {} }