question: public static boolean validateSDF ( File file ) { if ( ! file . exists ( ) ) { Diagnostic . error ( ErrorType . SDF_NOT_FOUND , file . getPath ( ) ) ; return false ; } if ( ! file . isDirectory ( ) ) { Diagnostic . error ( ErrorType . NOT_SDF , file . getPath ( ) ) ; return false ; } return true ; }
target:  Basic SDF file check