docs: public static void eachFileMatch(final File self, final FileType fileType, final Object nameFilter, @ClosureParams(value = SimpleType.class, options = "java.io.File") final Closure closure)
              throws FileNotFoundException, IllegalArgumentException {
          checkDir(self);
          final File[] files = self.listFiles();
          // null check because of http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4803836
          if (files == null) return;
          BooleanReturningMethodInvoker bmi = new BooleanReturningMethodInvoker("isCase");
          for (final File currentFile : files) {
              if (fileType == FileType.ANY ||
                      (fileType != FileType.FILES && currentFile.isDirectory()) ||
                      (fileType != FileType.DIRECTORIES && currentFile.isFile())) {
                  if (bmi.invoke(nameFilter, currentFile.getName()))
                      closure.call(currentFile);
              }
          }
      }