public static VirtualFile showSpecifyJavadocUrlDialog(JComponent parent, String initialValue){
    final String url = Messages.showInputDialog(parent, ProjectBundle.message("sdk.configure.javadoc.url.prompt"),
                                                ProjectBundle.message("sdk.configure.javadoc.url.title"), Messages.getQuestionIcon(), initialValue, new InputValidator() {
      @Override
      public boolean checkInput(String inputString) {
        return true;
      }
      @Override
      public boolean canClose(String inputString) {
        try {
          //noinspection ResultOfObjectAllocationIgnored
          new URL(inputString);
          return true;
        }
        catch (MalformedURLException e1) {
          Messages.showErrorDialog(e1.getMessage(), ProjectBundle.message("sdk.configure.javadoc.url.title"));
        }
        return false;
      }
    });
    if (url == null) {
      return null;
    }
    return VirtualFileManager.getInstance().findFileByUrl(url);
  }
public static VirtualFile showSpecifyJavadocUrlDialog(JComponent parent, String initialValue)