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;
 }