private static boolean isMissingColonError(@NotNull PsiElement element) {
    PsiErrorElement errorElement = as(element, PsiErrorElement.class);
    return errorElement != null && PyParsingBundle.message("PARSE.expected.colon").equals(errorElement.getErrorDescription());
  }
private static boolean isMissingColonError(@NotNull PsiElement element)