@Override
  @Nullable
  protected VirtualFile getBaseDir() {
    if (isConvertingToModuleLibrary()) {
      final VirtualFile[] roots = myPanel.getRootModel().getContentRoots();
      if (roots.length > 0) {
        return roots[0];
      }
      return ProjectUtil.guessModuleDir(myPanel.getRootModel().getModule());
    }
    return super.getBaseDir();
  }
@Override
  @Nullable
  protected VirtualFile getBaseDir()