Here you can find the source of add(List
private static void add(List<ClassLoader> result, ClassLoader loader)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { private static void add(List<ClassLoader> result, ClassLoader loader) { if (loader != null) { result.add(loader);//from w w w. j a va2 s .c om } } }