private PathMacroManager getPathMacroManager() {
    return PathMacroManager.getInstance(
      myProfileManager instanceof ProjectBasedInspectionProfileManager pm ? pm.getProject() : ApplicationManager.getApplication());
  }
private PathMacroManager getPathMacroManager()