What about a wrapper around your existing code:
public Collection getMatchingFiles( String directory, String extension ) {
return new ArrayList()(
getAllFilesThatMatchFilenameExtension( directory, extension ) );
}
I will throw a warning though. If you can live with that warning, then you're done.