interface Foo { void run(T t, int myInt); } public class A implements Foo { @Override public void run(String s, int myInt) { } }