ActionCallback (@NotNull String text) { ActionCallback result = new ActionCallback(); for (int i = 0; i < text.length(); i++) { myLastTypedActionTimestamp = System.currentTimeMillis(); char c = text.charAt(i); myLastTypedAction = Character.toString(c); if (!processKeyTyped(c)) { result.setRejected(); return result; } } result.setDone(); return result; }