ComponentItem (final Project project) { ComponentItem result = new ComponentItem(project, "", null, null, new GridConstraints(), new HashMap<>(), false, false, false); result.myAnyComponent = true; return result; }