question: public boolean hasFileExtension ( String extension ) { for ( String ext : fileExtensions ) { if ( ext . equalsIgnoreCase ( extension ) ) { return true ; } } return false ; }
target:  Checks if the FileFormat's file extension is equal to the specified file extension. The file extensions are compared ignoring upper/lower-case differences.