private static boolean isToken(final @Nullable PsiElement element, final String text) {
    return element != null && text.equals(element.getText());
  }
private static boolean isToken(final @Nullable PsiElement element, final String text)