private boolean canAddKeywords() {
    if (PsiTreeUtil.getNonStrictParentOfType(myPosition, PsiLiteralExpression.class, PsiComment.class) != null) {
      return false;
    }

    if (psiElement().afterLeaf("::").accepts(myPosition)) {
      return false;
    }
    return true;
  }
private boolean canAddKeywords()