static void disableAndRenameButtonWhileCalcing2(final O /*F0*/ f) { final JButton button = heldInstance(JButton); final AutoCloseable temp = tempDisableAndRenameButton(button); thread { temp temp; if (isTrue(callF(f))) disposePossiblyInternalFrame(button); } }