void (int aType, JLayeredPane aPane, Rectangle aRectangle, DnDEvent aEvent) { List<DropTargetHighlighter> toShow = new ArrayList<>(); for (DropTargetHighlighter ourHightlighter : ourHightlighters) { if ((ourHightlighter.getMask() & aType) != 0) { toShow.add(ourHightlighter); } } for (int i = 0; i < toShow.size(); i++) { DropTargetHighlighter each = toShow.get(i); each.show(aPane, aRectangle, aEvent); } ourCurrentHighlighters.addAll(toShow); }