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;
}

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 ; }
basic sdf file check
