@Override
  public @Nullable PsiElement getGotoDeclarationTarget(final @NotNull PsiElement element, final @Nullable 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);
  }
@Override
  public @Nullable PsiElement getGotoDeclarationTarget(final @NotNull PsiElement element, final @Nullable PsiElement navElement)