void (final ServiceMessage msg) { final Map<String, String> attrs = msg.getAttributes(); final String msgType = attrs.get(ATTR_KEY_TEST_TYPE); if (msgType != null) { switch (msgType) { case ATTR_VAL_TEST_STARTED -> fireOnCustomProgressTestStarted(); case ATTR_VAL_TEST_FINISHED -> fireOnCustomProgressTestFinished(); case ATTR_VAL_TEST_FAILED -> fireOnCustomProgressTestFailed(); } return; } final String testsCategory = attrs.get(ATTR_KEY_TESTS_CATEGORY); if (testsCategory != null) { final String countStr = msg.getAttributes().get(ATTR_KEY_TEST_COUNT); fireOnCustomProgressTestsCategory(testsCategory, convertToInt(countStr, msg)); //noinspection UnnecessaryReturnStatement return; } }