# for example find . -type f -name '*.java' -print0 | xargs -0 grep -l 'implements MyInterface'