private boolean checkExceptionUsed(List<PsiType> usedExceptions, GrParameter parameter, GrTypeElement typeElement, PsiType type) {
    for (PsiType exception : usedExceptions) {
      if (exception.isAssignableFrom(type)) {
        myHolder.newAnnotation(HighlightSeverity.WARNING,
                                         GroovyBundle.message("exception.0.has.already.been.caught", type.getCanonicalText()))
          .range(typeElement != null ? typeElement : parameter.getNameIdentifierGroovy())
          .withFix(new GrRemoveExceptionFix(parameter.getTypeElementGroovy() instanceof GrDisjunctionTypeElement)).create();
        return false;
      }
    }
    return true;
  }
private boolean checkExceptionUsed(List<PsiType> usedExceptions, GrParameter parameter, GrTypeElement typeElement, PsiType type)