@Override
  public boolean canSelect(@NotNull PsiElement e) {
    Language l = e.getLanguage();
    if (!(l.equals(JavaLanguage.INSTANCE)
          || l.equals(XMLLanguage.INSTANCE))) {
      return false;
    }

    if (BasicJavaAstTreeUtil.getParentOfType(BasicJavaAstTreeUtil.toNode(e), BASIC_JAVA_COMMENT_BIT_SET) == null) {
      return true;
    }
    return PsiTreeUtil.getParentOfType(e, PsiComment.class) == null;
  }
@Override
  public boolean canSelect(@NotNull PsiElement e)