LocalInspectionToolWrapper () { final StructuralSearchFakeInspection inspection = (StructuralSearchFakeInspection)getTool(); final List<Configuration> copies = new SmartList<>(); for (Configuration configuration : inspection.getConfigurations()) { copies.add(configuration.copy()); } return new StructuralSearchInspectionToolWrapper(copies); }