code: public static boolean isSame( PlexusIoResource resource, File file )
      {
          if ( resource instanceof FileSupplier )
          {
              File resourceFile = ((FileSupplier) resource).getFile();
              return file.equals( resourceFile );
          }
          return false;
      }
docs: Checks, whether the resource and the file are identical.