void (String path) { boolean isPathChangedByUser = myIsPathChangedByUser; myIsPathNameSyncEnabled = false; try { myTfPath.setText(getPresentablePath(path)); } finally { myIsPathChangedByUser = isPathChangedByUser; myIsPathNameSyncEnabled = true; } }