void (MouseEvent e, PsiElement element) { PsiElement parent = element.getParent(); if (!(parent instanceof GrMethod method)) return; if (DumbService.isDumb(element.getProject())) { DumbService.getInstance(element.getProject()).showDumbModeNotificationForFunctionality( GroovyBundle.message("popup.content.navigation.to.overriding.classes.unavailable"), DumbModeBlockedFunctionality.GroovyMarkers); return; } final OverridingMethodsUpdater methodsUpdater = new OverridingMethodsUpdater(method); new PsiTargetNavigator<>(() -> getOverridingMethods(method, (JComponent)e.getComponent())) .tabTitle(GroovyBundle.message("overriding.methods.of.0", method.getName())) .updater(methodsUpdater) .navigate(e, null, element.getProject()); }