code: public final @CheckForNull FilePath getSomeWorkspace() {
          R b = getSomeBuildWithWorkspace();
          if (b!=null) return b.getWorkspace();
          for (WorkspaceBrowser browser : ExtensionList.lookup(WorkspaceBrowser.class)) {
              FilePath f = browser.getWorkspace(this);
              if (f != null) return f;
          }
          return null;
      }
docs: Gets a workspace for some build of this project.
  
  <p>
  This is useful for obtaining a workspace for the purpose of form field validation, where exactly
  which build the workspace belonged is less important. The implementation makes a cursory effort
  to find some workspace.
  
  @return
  null if there's no available workspace.
  @since 1.319