@NotNull
  @NonNls
  @Override
  protected String expandPath(@NotNull @NonNls String path) {
    Project project = getProject();
    if (project != null) {
      path = PathMacroManager.getInstance(project).expandPath(path);
    }

    Module module = myFileChooserDescriptor.getUserData(LangDataKeys.MODULE_CONTEXT);
    if (module == null) {
      module = myFileChooserDescriptor.getUserData(PlatformCoreDataKeys.MODULE);
    }
    if (module != null) {
      path = PathMacroManager.getInstance(module).expandPath(path);
    }

    return super.expandPath(path);
  }
@NotNull
  @NonNls
  @Override
  protected String expandPath(@NotNull @NonNls String path)