AbstractTestProxy (@NotNull final String testName, @NotNull final AbstractTestProxy test) { if (test.getName().equals(testName)) { return test; } for (final AbstractTestProxy testProxy : test.getChildren()) { final AbstractTestProxy result = findTestByName(testName, testProxy); if (result != null) { return result; } } return null; }