PyDebugSessionFactory (@Nullable Sdk sdk) { if (sdk == null) { return null; } for (PyDebugSessionFactory sessionCreator : EP_NAME.getExtensions()) { if (sessionCreator.appliesTo(sdk)) { return sessionCreator; } } return null; }