private boolean checkDumbAware(@NotNull Object possiblyDumbAware) {
    Project project = myEditor.getProject();
    return project != null && DumbService.getInstance(project).isUsableInCurrentContext(possiblyDumbAware);
  }
private boolean checkDumbAware(@NotNull Object possiblyDumbAware)