boolean (TestDescriptor descriptor) { TestSource source = descriptor.getSource().orElse(null); if (source instanceof MethodSource) { for (DiscoverySelector selector : selectors) { if (selector instanceof MethodSelector && ((MethodSelector)selector).getMethodName().equals(((MethodSource)source).getMethodName()) && (((MethodSelector)selector).getClassName().equals(((MethodSource)source).getClassName()) || inNestedClass((MethodSource)source, createClassSelector(((MethodSelector)selector).getClassName())))) { return true; } } for (DiscoverySelector selector : selectors) { if (selector instanceof ClassSelector && ((ClassSelector)selector).getClassName().equals(((MethodSource)source).getClassName()) || inNestedClass((MethodSource)source, selector)) { return true; } } return false; } return true; }