interface Foo { void run(T t, int myInt); } public class A implements Foo { @Override public void run(String s, int myInt) { //To change body of implemented methods use File | Settings | File Templates. } }