public void checkFileSize(File file) {
   if (FileUtils.isFileOversized(file)) {
     this.notifyWarning(
         StringUtils.getStringRobust(
             getContext(), R.string.attachment_oversized, FileUtils.getFileSize(file) + ""));
   }
 }