Apparently, a class can have only the EnclosingMethod annotation, but not InnerClass annotation.