question: public static boolean checkExtension ( String query ) { for ( String ext : getExtensions ( ) ) { if ( ext . equals ( query ) ) { return true ; } } return false ; }
target:  Checks if an extension is supported.