@Override
  public boolean isAvailable(@NotNull Project project, @Nullable Editor editor, PsiFile file) {
    return editor != null && !DumbService.isDumb(project);
  }
@Override
  public boolean isAvailable(@NotNull Project project, @Nullable Editor editor, PsiFile file)