code: public static boolean popInputMap(Node node) {
          Stack<InputMap<?>> stackedInputMaps = getStack(node);
          if (!stackedInputMaps.isEmpty()) {
              // If stack is not empty, node has already been initialized, so can use unsafe methods.
              // Now, completely override current input map with previous one on stack
              setInputMapUnsafe(node, stackedInputMaps.pop());
              return true;
          } else {
              return false;
          }
      }
docs: If the internal stack has an {@link InputMap}, removes the current {@link InputMap} that was installed
  on the give node via {@link #pushInputMap(Node, InputMap)}, reinstalls the previous {@code InputMap},
  and then returns true. If the stack is empty, returns false.