@Override
      public void visitResourceVariable(@NotNull PsiResourceVariable variable) {
        super.visitResourceVariable(variable);
        List<PsiClassType> exceptionTypes = ExceptionUtil.getUnhandledCloserExceptions(variable, place);
        for (PsiClassType actualType : exceptionTypes) {
          if (type.isAssignableFrom(actualType) && myTypeFilter.test(actualType)) {
            PsiIdentifier name = variable.getNameIdentifier();
            if (name != null) {
              addUsage(name);
              break;
            }
          }
        }
      }
@Override
      public void visitResourceVariable(@NotNull PsiResourceVariable variable)