void (final Editor editor, final PyClass pyClass, final List<PyMethodMember> membersToOverride, final boolean implement) { if (membersToOverride == null) { return; } WriteCommandAction .writeCommandAction(pyClass.getProject(), pyClass.getContainingFile()) .run(() -> write(pyClass, membersToOverride, editor, implement)); }