void (final Object object) { Object target = ObjectUtils.chooseNotNull(getNavigatable(object), object); if (target instanceof Navigatable navigatable) { if (navigatable.canNavigate()) { navigatable.navigate(true); } } else if (target instanceof Module) { ProjectView projectView = ProjectView.getInstance(myProject); AbstractProjectViewPane projectViewPane = projectView.getProjectViewPaneById(projectView.getCurrentViewId()); if (projectViewPane != null) { projectViewPane.selectModule((Module)target, true); } } else if (target instanceof Project) { return; } hideHint(true); }