ActionOrGroup (@Nullable @NonNls final String value, ConvertContext context) { if (StringUtil.isEmptyOrSpaces(value)) return null; final Project project = context.getProject(); Ref<ActionOrGroup> result = Ref.create(); processScopes(context, scope -> { return IdeaPluginRegistrationIndex.processActionOrGroup(project, value, scope, actionOrGroup -> { if (isRelevant(actionOrGroup)) { result.set(actionOrGroup); return false; } return true; }); }); return result.get(); }