Icon (@Nullable TestStateStorage.Record state, boolean isClass) { if (state != null) { TestStateInfo.Magnitude magnitude = TestIconMapper.getMagnitude(state.magnitude); if (magnitude != null) { switch (magnitude) { case ERROR_INDEX, FAILED_INDEX -> { return AllIcons.RunConfigurations.TestState.Red2; } case PASSED_INDEX, COMPLETE_INDEX -> { return AllIcons.RunConfigurations.TestState.Green2; } default -> { } } } } return isClass ? AllIcons.RunConfigurations.TestState.Run_run : AllIcons.RunConfigurations.TestState.Run; }