@Override
  public void visitResourceExpression(@NotNull PsiResourceExpression resource) {
    super.visitResourceExpression(resource);
    if (!hasErrorResults()) add(checkFeature(resource, JavaFeature.REFS_AS_RESOURCE));
    if (!hasErrorResults()) add(HighlightUtil.checkResourceVariableIsFinal(resource));
    if (!hasErrorResults()) add(HighlightUtil.checkTryResourceIsAutoCloseable(resource));
    if (!hasErrorResults()) add(HighlightUtil.checkUnhandledCloserExceptions(resource));
  }
@Override
  public void visitResourceExpression(@NotNull PsiResourceExpression resource)