sclass tempDisposeInternalFrame_obj implements AutoCloseable { A component; *(A *component) {} public void close() { disposeInternalFrame(component); } void disableAutoDisposal { component = null; } } static tempDisposeInternalFrame_obj tempDisposeInternalFrame(A c) { ret tempDisposeInternalFrame_obj(c); }