void (@NotNull Processor<? super PsiElement> processor, boolean inherited, @NotNull TypeEvalContext context) { for (PyClassLikeType type : myTypesToMimic) { // Only visit methods that are allowed by filter (if any) type.visitMembers(t -> { if (!(t instanceof PyElement)) { return true; } if (myFilter == null || myFilter.process((PyElement)t)) { return processor.process(t); } return true; }, inherited, context); } }