String (@NotNull String path) { Project project = getProject(); if (project != null) path = PathMacroManager.getInstance(project).expandPath(path); Module module = getModule(); if (module != null) path = PathMacroManager.getInstance(module).expandPath(path); return super.expandPath(path); }