code: public static boolean isCanonicalizedSame( PlexusIoResource resource, File file )
          throws IOException
      {
          if ( resource instanceof FileSupplier)
          {
              File resourceFile = ((FileSupplier) resource).getFile();
              return file.getCanonicalFile().equals( resourceFile.getCanonicalFile() );
          }
          return false;
      }
docs: Checks, whether the resource and the file are identical.
  Uses {@link File#getCanonicalFile()} for comparison, which is much
  slower than comparing the files.