boolean () { boolean wasNotInWaitState = myState != myWaitForStart; if (Boolean.getBoolean("ide.debugMode") && wasNotInWaitState) { System.out.println("-- key gesture context: before process, state=" + myState); System.out.println(myContext); } myContext.keyToProcess = myDispatcher.getContext().getInputEvent(); myContext.isModal = myDispatcher.getContext().isModalContext(); myContext.dataContext = myDispatcher.getContext().getDataContext(); boolean result = myState.process(); if (Boolean.getBoolean("ide.debugMode") && (wasNotInWaitState || myState != myWaitForStart)) { System.out.println("-- key gesture context: after process, state=" + myState); System.out.println(myContext); } return result; }