public boolean isApplicable(AnActionEvent event, final Map<String, Object> _params) {
   List<SModel> models =
       ListSequence.fromListWithValues(
           new ArrayList<SModel>(),
           (Iterable<SModel>)
               VcsActionsUtil.getModels(
                   ((VirtualFile[]) MapSequence.fromMap(_params).get("virtualFiles"))));
   if (!(VcsActionsUtil.isMakePluginInstalled())
       || IMakeService.INSTANCE.get().isSessionActive()
       || ListSequence.fromList(models).isEmpty()) {
     return false;
   }
   String text =
       new MakeActionParameters(
               ((IOperationContext) MapSequence.fromMap(_params).get("context")),
               models,
               ListSequence.fromList(models).first(),
               null,
               null)
           .actionText(MakeOrRebuildModelsFromChangeList_Action.this.rebuild);
   if (text != null) {
     event.getPresentation().setText(text);
     return true;
   }
   return false;
 }
 public void doExecute(@NotNull final AnActionEvent event, final Map<String, Object> _params) {
   try {
     List<SModel> models =
         ListSequence.fromListWithValues(
             new ArrayList<SModel>(),
             (Iterable<SModel>)
                 VcsActionsUtil.getModels(
                     ((VirtualFile[]) MapSequence.fromMap(_params).get("virtualFiles"))));
     new MakeActionImpl(
             ((IOperationContext) MapSequence.fromMap(_params).get("context")),
             new MakeActionParameters(
                 ((IOperationContext) MapSequence.fromMap(_params).get("context")),
                 models,
                 ListSequence.fromList(models).first(),
                 null,
                 null),
             MakeOrRebuildModelsFromChangeList_Action.this.rebuild)
         .executeAction();
   } catch (Throwable t) {
     if (LOG.isEnabledFor(Priority.ERROR)) {
       LOG.error(
           "User's action execute method failed. Action:" + "MakeOrRebuildModelsFromChangeList",
           t);
     }
   }
 }