@Override
    public void navigate(boolean requestFocus) {
      ProjectSettingsService service = getProjectSettingsService(getProject());
      if (service != null) {
        Module module = getModule(getVirtualFile(), getProject());
        if (module != null && service.canOpenModuleSettings()) {
          service.openModuleSettings(module);
        }
        else {
          service.openProjectSettings();
        }
      }
    }
@Override
    public void navigate(boolean requestFocus)