PsiElement (@NotNull final PsiElement element, @Nullable final PsiElement navElement) { if (navElement == element && element instanceof PsiCompiledElement && element instanceof PsiMethod method && method.isConstructor() && method.getParameterList().isEmpty()) { PsiClass aClass = method.getContainingClass(); PsiElement navClass = aClass == null ? null : aClass.getNavigationElement(); if (aClass != navClass) return navClass; } return super.getGotoDeclarationTarget(element, navElement); }