public CustomTestsAction() {
      JavaTestModel testTasksModel = javaExt.getCurrentModel().getMainModule().getTestTasks();
      Collection<JavaTestTask> testTasks = testTasksModel.getTestTasks();
      this.customTestTasks = new ArrayList<>(testTasks.size());

      for (JavaTestTask testTask : testTasks) {
        if (!TestTaskName.DEFAULT_TEST_TASK_NAME.equals(testTask.getName())) {
          customTestTasks.add(new CustomTestAction(testTask));
        }
      }

      sortTestActions(customTestTasks);
    }
    private CustomTestAction(JavaTestTask testTask, String name) {
      super(name);

      this.context = Lookups.singleton(new TestTaskName(testTask.getName()));
      this.displayName = name;
    }
 private String getCustomTestTaskName(JavaTestTask testTask) {
   return StringUtils.capitalizeFirstCharacter(testTask.getName());
 }