ParseResult (@NotNull ParseResult result) { final Map<TextRange, PyType> types = new HashMap<>(); final Map<PyType, TextRange> fullRanges = new HashMap<>(); final Map<PyType, PyImportElement> imports = new HashMap<>(); types.putAll(myTypes); types.putAll(result.getTypes()); fullRanges.putAll(myFullRanges); fullRanges.putAll(result.getFullRanges()); imports.putAll(myImports); imports.putAll(result.getImports()); return new ParseResult(myType, types, fullRanges, imports); }