EnumerationChildrenRenderer (@NonNls String[][] expressions) { EnumerationChildrenRenderer childrenRenderer = new EnumerationChildrenRenderer(); if (expressions != null && expressions.length > 0) { ArrayList<EnumerationChildrenRenderer.ChildInfo> childrenList = new ArrayList<>(expressions.length); for (String[] expression : expressions) { childrenList.add(new EnumerationChildrenRenderer.ChildInfo( expression[0], new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, expression[1], "", JavaFileType.INSTANCE), false)); } childrenRenderer.setChildren(childrenList); } return childrenRenderer; }