void (TreeModelEvent e) { final TreePath path = e.getTreePath(); final Object child = e.getChildren()[0]; if (path != null && child != null) { myAlarm.cancelAllRequests(); final Runnable runnable = () -> { myEventTree.expandPath(path); TreeUtil.showRowCentered(myEventTree, myEventTree.getRowForPath(TreeUtil.getPathFromRoot((TreeNode)child)), false); }; myAlarm.addRequest(runnable, 300); } }