boolean isValid() {
      return ContainerUtil.and(myClasses.values(), PsiElement::isValid) && 
             (myExceptionClasses == null || ContainerUtil.and(myExceptionClasses, PsiElement::isValid));
    }
boolean isValid()