private static List<PsiClassType> getExceptionsFromClose(PsiResourceListElement resource) {
    return getExceptionsFromClose(resource.getType(), resource.getResolveScope());
  }
private static List<PsiClassType> getExceptionsFromClose(PsiResourceListElement resource)