@Override
  protected boolean useConsoleLexer(final @Nullable Project project, final @Nullable VirtualFile virtualFile) {
    if (virtualFile == null || project == null || virtualFile instanceof VirtualFileWindow) {
      return false;
    }
    PsiFile psiFile = PsiManager.getInstance(project).findFile(virtualFile);
    return psiFile != null && PydevConsoleRunnerUtil.isInPydevConsole(psiFile);
  }
@Override
  protected boolean useConsoleLexer(final @Nullable Project project, final @Nullable VirtualFile virtualFile)