@Override
  protected boolean isValidForFile(@NotNull Project project, @NotNull Editor editor, final @NotNull PsiFile file) {
    if (!(file instanceof PsiJavaFile)) {
      return false;
    }
    return DumbService.getInstance(project).computeWithAlternativeResolveEnabled(
      () -> GenerateSuperMethodCallHandler.canInsertSuper(editor, file) != null);
  }
@Override
  protected boolean isValidForFile(@NotNull Project project, @NotNull Editor editor, final @NotNull PsiFile file)