void () { final IdeFocusManager focusManager = myProject == null || myProject.isDefault() ? IdeFocusManager.getGlobalInstance() : IdeFocusManager.getInstance(myProject); focusManager.requestFocus(myTable, true); }