ActionCallback (final Content content, final boolean forced) { final Content toSelect = content == null ? getSelectedContent() : content; if (toSelect == null) return ActionCallback.REJECTED; assert contents.contains(toSelect); JComponent preferredFocusableComponent = toSelect.getPreferredFocusableComponent(); return preferredFocusableComponent != null ? getFocusManager().requestFocusInProject(preferredFocusableComponent, myProject) : ActionCallback.REJECTED; }