void (final @NotNull Project project, final @NotNull String oldRelativePath, final @NotNull String newRelativePath) { final Optional<UserDefinedJsonSchemaConfiguration> old = myState.myState.values().stream() .filter(schema -> FileUtil.pathsEqual(schema.getRelativePathToSchema(), oldRelativePath)) .findFirst(); old.ifPresent(configuration -> { configuration.setRelativePathToSchema(newRelativePath); JsonSchemaService.Impl.get(project).reset(); }); }