AnAction (final AntBuildFile buildFile, final @ActionText String displayName, final List<String> targets, final @ActionDescription String targetDescription, final String actionId) { AnAction action = null; if (actionId != null) { action = ActionManager.getInstance().getAction(actionId); } if (action == null) { action = new TargetAction(buildFile, displayName, targets, targetDescription); } return action; }