declare namespace java {
    namespace net {
        // @ts-ignore
        interface ProtocolFamily {
            /**
             * Returns the name of the protocol family.
             */
            // @ts-ignore
             name(): string;
        }
    }
}
