default ClassDeclaration asClass(){
  throw new UnsupportedOperationException(String.format("%s is not a class",this));
}

default ClassDeclaration asClass ( ) { throw new UnsupportedOperationException ( String . format ( "%s is not a class" , this ) ) ; }
return this as a classdeclaration or throw unsupportedoperationexception .
