boolean (@Nullable Actions actions) { if (actions == null) return false; final Module module = actions.getModule(); if (module == null) return false; if (PsiUtil.isIdeaProject(module.getProject()) && (module.getName().startsWith("intellij.platform.") || ApplicationManager.getApplication().isUnitTestMode())) { return true; } final IdeaPlugin ideaPlugin = DomUtil.getParentOfType(actions, IdeaPlugin.class, true); if (ideaPlugin == null) return false; return PluginManagerCore.CORE_PLUGIN_ID.equals(ideaPlugin.getPluginId()) || !ideaPlugin.hasRealPluginId(); }