Component (Component comp, int index) { Logger.getInstance(JBLayeredPane.class) .warn("Probably incorrect call - constraint as primitive integer will be used as index", new Throwable()); addImpl(comp, null, index); return comp; }