String (@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); }