ToolDescriptors (final ScopeToolState state, @NotNull InspectionProfileModifiableModel profile, final Project project) { List<ScopeToolState> nonDefaultTools = profile.getNonDefaultTools(state.getTool().getShortName(), project); ArrayList<Descriptor> descriptors = new ArrayList<>(nonDefaultTools.size()); for (final ScopeToolState nonDefaultToolState : nonDefaultTools) { descriptors.add(new Descriptor(nonDefaultToolState, profile, project)); } return new ToolDescriptors(new Descriptor(state, profile, project), descriptors); }